Hi
I am new to Vba, and struggling
I am trying out various functionalities in different subroutines and i intend to merge them together at some point.
I have two questions:
Q1 )
I use one subroutine to capture date as '28-Jul-11'
I would like to have this date in dd/mm/yyyy format. Would it be possible?
Q2)
In another Subroutine:
I have 50 worksheets in my workbook. Each worksheet can have varying number of records.
If worksheet1 has 10 records, I copy a row from my input worksheet to the 11th record (fields D11, E11, I11 are the only ones filled).
Here I would additionally like to move the 'datex' from subroutine in Question 1 to C11 (C has values in Date Format). Problem is, I am not able to hard code 11. It can be C11, C12 or anything. Can this be solved?
I have spent quite a bit of time browsing through posts before deciding to write in.
Looking forward to your suggestions, I see many advanced users here. Hence hopes are high.
Thank you, and I could say that many more times.
I am new to Vba, and struggling
I am trying out various functionalities in different subroutines and i intend to merge them together at some point.
I have two questions:
Q1 )
I use one subroutine to capture date as '28-Jul-11'
Dim str As String, str1 As String, datex As String
Public Sub DateTest()
str = Range("A2").Value
datex = Mid(str, 22, 12)
MsgBox datex
End Sub
Public Sub DateTest()
str = Range("A2").Value
datex = Mid(str, 22, 12)
MsgBox datex
End Sub
I would like to have this date in dd/mm/yyyy format. Would it be possible?
Q2)
In another Subroutine:
I have 50 worksheets in my workbook. Each worksheet can have varying number of records.
If worksheet1 has 10 records, I copy a row from my input worksheet to the 11th record (fields D11, E11, I11 are the only ones filled).
Here I would additionally like to move the 'datex' from subroutine in Question 1 to C11 (C has values in Date Format). Problem is, I am not able to hard code 11. It can be C11, C12 or anything. Can this be solved?
I have spent quite a bit of time browsing through posts before deciding to write in.
Looking forward to your suggestions, I see many advanced users here. Hence hopes are high.
Thank you, and I could say that many more times.