hello,
i want to know the number of rows of an excel file. i searched in this forum and found that i can use the .CurrentRegion function. But when, i tried it, it says that the object doesn't support the property or method.
I have the ff code:
Dim wkbobj As Workbook
Set wkbobj = GetObject(codOpen.FileName)
z = wkbobj.ActiveCell.CurrentRegion
i think something's worng with it. please help!!!
TIA,
ching
i want to know the number of rows of an excel file. i searched in this forum and found that i can use the .CurrentRegion function. But when, i tried it, it says that the object doesn't support the property or method.
I have the ff code:
Dim wkbobj As Workbook
Set wkbobj = GetObject(codOpen.FileName)
z = wkbobj.ActiveCell.CurrentRegion
i think something's worng with it. please help!!!
TIA,
ching