Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

Pa help po sa mga vb6.0 master :D

chachi

Novice
Advanced Member
Messages
23
Reaction score
0
Points
26
Function generateHeader(sDate As String) As String
Dim i As Integer
ReDim arrMonthes(1 To 12)
arrMonthes = Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec")

Set rRng = xlSheet.Range("C4:N4")


For i = 0 To 11
If Right(sDate, 3) = arrMonthes(i) Then
For Each rCell In rRng.Cells
rCell.Value = arrMonthes(i)
Next rCell
Exit For
End If
Next
end function

Sample scenario
Excel
C:4 to N:4
nag generate ako ng for the month of FEB
gusto ko po sana mag backdate so dapat magging FEB to JAN na po ung nsa excel

Salamat po sa makakatulong
 
Function generateHeader(sDate As String) As String
Dim i As Integer
ReDim arrMonthes(1 To 12)
arrMonthes = Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec")

Set rRng = xlSheet.Range("C4:N4")


For i = 0 To 11
If Right(sDate, 3) = arrMonthes(i) Then
For Each rCell In rRng.Cells
rCell.Value = arrMonthes(i)
Next rCell
Exit For
End If
Next
end function

Sample scenario
Excel
C:4 to N:4
nag generate ako ng for the month of FEB
gusto ko po sana mag backdate so dapat magging FEB to JAN na po ung nsa excel

Salamat po sa makakatulong

gamitan mo po ng sorting at order, kung ascending or descending sya..
 
Back
Top Bottom