Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am having multiple worksheets in an Excel file and now I want to use the
name of each worksheet in a new worksheet in the same file. Is there a formula which can copy the name of worksheet into a Cell of another worksheet |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
This article from Bob Phillips' site covers what you want:
http://www.xldynamic.com/source/xld.xlFAQ0002.html Hope this helps. Pete On Apr 7, 1:49*pm, Akhil Goel wrote: I am having multiple worksheets in an Excel file and now I want to use the name of each worksheet in a new worksheet in the same file. Is there a formula which can copy the name of worksheet into a Cell of another worksheet |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Worksheets(2).Range("A1").Value2 = Worksheets(1).Name -- HTH Bob "Akhil Goel" wrote in message ... I am having multiple worksheets in an Excel file and now I want to use the name of each worksheet in a new worksheet in the same file. Is there a formula which can copy the name of worksheet into a Cell of another worksheet |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Option Explicit
Sub testme() Dim iCtr As Long Dim rCtr As Long rCtr = 0 For iCtr = 1 To Sheets.Count If Worksheets(iCtr).Name = Worksheets("NewWorksheetname").Name Then 'skip it Else rCtr = rCtr + 1 With Worksheets("NewWorksheetname") With .Cells(rCtr, "A") .NumberFormat = "@" 'text .Value = Sheets(iCtr).Name End With End With End If Next iCtr End Sub Akhil Goel wrote: I am having multiple worksheets in an Excel file and now I want to use the name of each worksheet in a new worksheet in the same file. Is there a formula which can copy the name of worksheet into a Cell of another worksheet -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
automatically appending newly added data on worksheet to a master list worksheet | Links and Linking in Excel | |||
plot graph from multiple worksheet as embedded chart object on every worksheet | Charts and Charting in Excel | |||
plot graph from multiple worksheet as embedded chart object on every worksheet | Excel Worksheet Functions | |||
plot graph from multiple worksheet as embedded chart object on every worksheet | New Users to Excel | |||
Upload multiple text files into 1 excel worksheet + put the filename as the first column in the worksheet | Excel Worksheet Functions |