Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to make a function that I can pass the name of a work sheet to
it, so I can use the function for many different uses. Example: sub test() recct = wsreccount("sheet1") msgbox recct function wsreccount (wsname as workbook) wsreccount = wsname.UsedRange.Rows.Count end function What would be the right way to do this? This ia a very simple example, but gets the point across Thanks Phil |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to pass variables as arguments of a function | Excel Worksheet Functions | |||
Pass word protecting multipul worksheets within a workbook | Excel Discussion (Misc queries) | |||
Showing Error when going to pass a function like this | Excel Worksheet Functions | |||
Pass variable to NORMINSV function to get only mean value | Excel Worksheet Functions | |||
How to pass value between workbooks ? | Excel Programming |