Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
So, when I call BBB, I must call it as follows:
BBB Sheet3 ' works okay On the other hand, I get an error message if I call it as follows: BBB (Sheet3) ' error message - Object doesn't support this property or message. I just think it's weird that an error occurs if I place parentheses around Sheet3. I wonder why that causes an error? Anyways, thank you so much for your help. Your solution above DOES work for my needs! "Chip Pearson" wrote in message ... Declare the parameter As Worksheet. E.g, Sub AAA() BBB Sheet3 End Sub Sub BBB(WS As Worksheet) Debug.Print WS.Name, WS.Range("A1").Text End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
find "Cancellation" in column "A" and copy all data from Columns B-F onto another Sheet | Excel Programming | |||
Most efficient code to "flip" a range of values + vs - | Excel Programming | |||
Change default in input box from "20" to "000000"? Have macro continue on to name sheet tab? | Excel Programming | |||
Please add a "sheet" function like "row" and "column" functions | Excel Programming |