Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
count tabs
Is there a way to count the number of tabs in a worksheet?
|
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
count tabs
In code???
msgbox Activeworkbook.sheets.count alm09 wrote: Is there a way to count the number of tabs in a worksheet? -- Dave Peterson |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
count tabs
You could use this function. Al + F11 to open VB editor, right click this
workbook and insert module and paste this in. Function sheetsinbook() sheetsinbook = Worksheets.Count End Function this formula in a cell will return the number of worksheets. =sheetsinbook() Mike "alm09" wrote: Is there a way to count the number of tabs in a worksheet? |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
count tabs
I would rather use the formula but it is not working. I get a #NAME? error.
Is there an input (i.e. file name) in the parentheses or is to remain null? "Mike H" wrote: You could use this function. Al + F11 to open VB editor, right click this workbook and insert module and paste this in. Function sheetsinbook() sheetsinbook = Worksheets.Count End Function this formula in a cell will return the number of worksheets. =sheetsinbook() Mike "alm09" wrote: Is there a way to count the number of tabs in a worksheet? |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
count tabs
if its giving a name error then you haven't put the function it calls in the
correct place. Put the function in a module in your workbook. You could use this function. Alt + F11 to open VB editor, right click this workbook and insert module and paste this in. Mike "alm09" wrote: I would rather use the formula but it is not working. I get a #NAME? error. Is there an input (i.e. file name) in the parentheses or is to remain null? "Mike H" wrote: You could use this function. Al + F11 to open VB editor, right click this workbook and insert module and paste this in. Function sheetsinbook() sheetsinbook = Worksheets.Count End Function this formula in a cell will return the number of worksheets. =sheetsinbook() Mike "alm09" wrote: Is there a way to count the number of tabs in a worksheet? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
hide tabs from view then lock tabs? | Excel Discussion (Misc queries) | |||
Count through tabs | Excel Discussion (Misc queries) | |||
Can i set up tabs within tabs on Excel? | Excel Worksheet Functions | |||
Page Count with Tabs | Excel Discussion (Misc queries) | |||
Is there a way to count all the worksheet tabs in an Excel speadsh | Excel Discussion (Misc queries) |