Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Dear Helpers,
I need to extract all the worksheet names in a summary worksheet. I copied the following VBA from the Office Discussion Groups Q & A Quote Sub SheetList() For Each ws In Worksheets i = i + 1 Cells(i, 1) = ws.Name Next End Sub by Mr Raypayette Unquoted The above vba works well but always have the result located at A1. Is it possible to put it to B3 or any designated cell I choose. Thanks in advance Fanny "raypayette" wrote: Click to show or hide original message or reply text. You would have to use VBE: Sub SheetList() For Each ws In Worksheets i = i + 1 Cells(i, 1) = ws.Name Next End Sub -- raypayette ------------------------------------------------------------------------ raypayette's Profile: http://www.excelforum.com/member.php...o&userid=29569 View this thread: http://www.excelforum.com/showthread...hreadid=566968 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Open Workbook to Specific Worksheet? | Excel Discussion (Misc queries) | |||
How to open a workbook on a specific worksheet. | Excel Worksheet Functions | |||
Copy Data from Workbook into specific Worksheet in other Workbook? | Excel Discussion (Misc queries) | |||
Defining non worksheet specific names... | Excel Worksheet Functions | |||
Open workbook to specific worksheet | Excel Discussion (Misc queries) |