Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a file that has 50 worksheets, I am trying to print the names of the
worksheets so that I can incorporate into a new file. I made some changes to the new file and we added about 20 new sheets to the old file so I am looking for a way to print these names as opposed to writing them all out. I thank you in advance for your assistance and consideration. CRF |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
try
sub listsheets() for i=1 to worksheets.count cells(i,1)=sheets(i).name next i end sub -- Don Guillett Microsoft MVP Excel SalesAid Software "chris felix" <chris wrote in message ... I have a file that has 50 worksheets, I am trying to print the names of the worksheets so that I can incorporate into a new file. I made some changes to the new file and we added about 20 new sheets to the old file so I am looking for a way to print these names as opposed to writing them all out. I thank you in advance for your assistance and consideration. CRF |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Chris
You can try out the below macro. If you are new to macros.. --Set the Security level to low/medium in (Tools|Macro|Security). --From workbook launch VBE using short-key Alt+F11. --From menu 'Insert' a module and paste the below code. --Get back to Workbook. --Run macro from Tools|Macro|Run <selected macro() Sub Macro() Dim ws As Worksheet, lngRow As Long For Each ws In Worksheets lngRow = lngRow + 1 Range("A" & lngRow) = ws.Name Next End Sub -- Jacob "chris felix" wrote: I have a file that has 50 worksheets, I am trying to print the names of the worksheets so that I can incorporate into a new file. I made some changes to the new file and we added about 20 new sheets to the old file so I am looking for a way to print these names as opposed to writing them all out. I thank you in advance for your assistance and consideration. CRF |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
print all worksheets of Excel file to one pdf file | Excel Discussion (Misc queries) | |||
How to set worksheets to print in different order in the same file | Excel Worksheet Functions | |||
Create command button to print multiple worksheets in a excel file | Excel Discussion (Misc queries) | |||
Need to print path & file on ALL excel worksheets... | Excel Discussion (Misc queries) | |||
How do you print all worksheets in a file without opening the fil. | Excel Worksheet Functions |