Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have three sheets in the Excel, by default, they're called Sheet1,
Sheet2, and Sheet3. I renamed the sheets to "MarketData", "LongTermLimits", and "ShortTermLimits" respectively. I want to create a VB (macro?) inside an Excel file as below: Sub MatchShortTermLimits() Sheet2.UsedRange.Rows.Count End Sub It gives me an error, "Compile error: Invalid use of property" I changed the code to: Sub MatchShortTermLimits() LongTermLimits.UsedRange.Rows.Count End Sub It then complains "Object required" Any advice on how to get this fixed? I only want to get the row count of Sheet2 (renamed to "LongTermLimits"). |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Is Visual Basic the same as Visual Studio 2008? | Excel Worksheet Functions | |||
Visual Basic code not working when sheet is saved | Excel Discussion (Misc queries) | |||
Visual Basic - Variable Sheet Names | Excel Discussion (Misc queries) | |||
visual basic. find copy row past into new sheet | Excel Worksheet Functions | |||
changing the visual basic in office 2003 to visual studio net | Excel Discussion (Misc queries) |