Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 65
Default Give a sheet name from a Cell

Hi! Experts

http://www.mrexcel.com/forum/showthread.php?t=403613

Is it possible to give a Name to a Sheet from a Cell.

Assuming in Column A i have Sheets Names

Worksheets
CZ001
CZ002
CZ003
CZ004
CZ006
CZ007
CZ008
CZ009
CZ012
CZ014
CZ015
CZ016
CZ017



Now i want to give the Name to every Sheets depending on these Cells

Sheet1= CZ001, Sheet2= CZ002 and so on.

If Possible with Formulas otherwise Macro or Code will be Secondly Options
for me.

Coz, sometimes i have to work on other Systems or Computers.

So, its not Possible person like me who is totally stupid in Macros to use
Codes

So, thats why i always Prefers Formulas not Macros or Codes or VBA

Thanks in Advance

Hardeep kanwar

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Give a sheet name from a Cell

Hi Hardeep

You will need to use a macro to achieve this..Try the below and feedback.
Select the cells with sheet names and run the macro...

Sub NameSheets()
Dim intTemp As Integer
Dim rngTemp As Range
Set rngTemp = Selection
If rngTemp.Count Sheets.Count Then
ActiveWorkbook.Sheets.Add After:=Worksheets(Sheets.Count), _
Count:=(rngTemp.Count - ActiveWorkbook.Sheets.Count)
End If
For Each cell In rngTemp
intTemp = intTemp + 1
ActiveWorkbook.Sheets(intTemp).Name = cell.Text
Next
End Sub

PS: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. Save. Get back to Workbook. Run macro from
Tools|Macro|Run <selected macro()

If this post helps click Yes
---------------
Jacob Skaria


"Hardeep Kanwar" wrote:

Hi! Experts

http://www.mrexcel.com/forum/showthread.php?t=403613

Is it possible to give a Name to a Sheet from a Cell.

Assuming in Column A i have Sheets Names

Worksheets
CZ001
CZ002
CZ003
CZ004
CZ006
CZ007
CZ008
CZ009
CZ012
CZ014
CZ015
CZ016
CZ017



Now i want to give the Name to every Sheets depending on these Cells

Sheet1= CZ001, Sheet2= CZ002 and so on.

If Possible with Formulas otherwise Macro or Code will be Secondly Options
for me.

Coz, sometimes i have to work on other Systems or Computers.

So, its not Possible person like me who is totally stupid in Macros to use
Codes

So, thats why i always Prefers Formulas not Macros or Codes or VBA

Thanks in Advance

Hardeep kanwar

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Give a sheet name from a Cell

There is no need to cross post. The level of responder expertise at MRExcel
is quite capable of providing a solution and has.

If Possible with Formulas


This is not possible using formulas.

--
Biff
Microsoft Excel MVP


"Hardeep Kanwar" wrote in message
...
Hi! Experts

http://www.mrexcel.com/forum/showthread.php?t=403613

Is it possible to give a Name to a Sheet from a Cell.

Assuming in Column A i have Sheets Names

Worksheets
CZ001
CZ002
CZ003
CZ004
CZ006
CZ007
CZ008
CZ009
CZ012
CZ014
CZ015
CZ016
CZ017



Now i want to give the Name to every Sheets depending on these Cells

Sheet1= CZ001, Sheet2= CZ002 and so on.

If Possible with Formulas otherwise Macro or Code will be Secondly Options
for me.

Coz, sometimes i have to work on other Systems or Computers.

So, its not Possible person like me who is totally stupid in Macros to use
Codes

So, thats why i always Prefers Formulas not Macros or Codes or VBA

Thanks in Advance

Hardeep kanwar



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 65
Default Give a sheet name from a Cell

Thanks Jacob Skaria



"Jacob Skaria" wrote:

Hi Hardeep

You will need to use a macro to achieve this..Try the below and feedback.
Select the cells with sheet names and run the macro...

Sub NameSheets()
Dim intTemp As Integer
Dim rngTemp As Range
Set rngTemp = Selection
If rngTemp.Count Sheets.Count Then
ActiveWorkbook.Sheets.Add After:=Worksheets(Sheets.Count), _
Count:=(rngTemp.Count - ActiveWorkbook.Sheets.Count)
End If
For Each cell In rngTemp
intTemp = intTemp + 1
ActiveWorkbook.Sheets(intTemp).Name = cell.Text
Next
End Sub

PS: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. Save. Get back to Workbook. Run macro from
Tools|Macro|Run <selected macro()

If this post helps click Yes
---------------
Jacob Skaria


"Hardeep Kanwar" wrote:

Hi! Experts

http://www.mrexcel.com/forum/showthread.php?t=403613

Is it possible to give a Name to a Sheet from a Cell.

Assuming in Column A i have Sheets Names

Worksheets
CZ001
CZ002
CZ003
CZ004
CZ006
CZ007
CZ008
CZ009
CZ012
CZ014
CZ015
CZ016
CZ017



Now i want to give the Name to every Sheets depending on these Cells

Sheet1= CZ001, Sheet2= CZ002 and so on.

If Possible with Formulas otherwise Macro or Code will be Secondly Options
for me.

Coz, sometimes i have to work on other Systems or Computers.

So, its not Possible person like me who is totally stupid in Macros to use
Codes

So, thats why i always Prefers Formulas not Macros or Codes or VBA

Thanks in Advance

Hardeep kanwar

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 65
Default Give a sheet name from a Cell

I was thinking its possible with formulas

Any way Thanks for the Help

Regards

Hardeep Kanwar

"T. Valko" wrote:

There is no need to cross post. The level of responder expertise at MRExcel
is quite capable of providing a solution and has.

If Possible with Formulas


This is not possible using formulas.

--
Biff
Microsoft Excel MVP


"Hardeep Kanwar" wrote in message
...
Hi! Experts

http://www.mrexcel.com/forum/showthread.php?t=403613

Is it possible to give a Name to a Sheet from a Cell.

Assuming in Column A i have Sheets Names

Worksheets
CZ001
CZ002
CZ003
CZ004
CZ006
CZ007
CZ008
CZ009
CZ012
CZ014
CZ015
CZ016
CZ017



Now i want to give the Name to every Sheets depending on these Cells

Sheet1= CZ001, Sheet2= CZ002 and so on.

If Possible with Formulas otherwise Macro or Code will be Secondly Options
for me.

Coz, sometimes i have to work on other Systems or Computers.

So, its not Possible person like me who is totally stupid in Macros to use
Codes

So, thats why i always Prefers Formulas not Macros or Codes or VBA

Thanks in Advance

Hardeep kanwar






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Give a sheet name from a Cell

Formulas can take no actions other than to display its result in the cell it
is located in.

--
Rick (MVP - Excel)


"Hardeep Kanwar" wrote in message
...
I was thinking its possible with formulas

Any way Thanks for the Help

Regards

Hardeep Kanwar

"T. Valko" wrote:

There is no need to cross post. The level of responder expertise at
MRExcel
is quite capable of providing a solution and has.

If Possible with Formulas


This is not possible using formulas.

--
Biff
Microsoft Excel MVP


"Hardeep Kanwar" wrote in
message
...
Hi! Experts

http://www.mrexcel.com/forum/showthread.php?t=403613

Is it possible to give a Name to a Sheet from a Cell.

Assuming in Column A i have Sheets Names

Worksheets
CZ001
CZ002
CZ003
CZ004
CZ006
CZ007
CZ008
CZ009
CZ012
CZ014
CZ015
CZ016
CZ017



Now i want to give the Name to every Sheets depending on these Cells

Sheet1= CZ001, Sheet2= CZ002 and so on.

If Possible with Formulas otherwise Macro or Code will be Secondly
Options
for me.

Coz, sometimes i have to work on other Systems or Computers.

So, its not Possible person like me who is totally stupid in Macros to
use
Codes

So, thats why i always Prefers Formulas not Macros or Codes or VBA

Thanks in Advance

Hardeep kanwar





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to give hyperlink to hidden excel sheet Chetu Excel Worksheet Functions 0 April 9th 09 08:56 AM
Give RELEVANT responses to questions. DO NOT give usless list pmartin Excel Worksheet Functions 2 July 6th 06 06:08 PM
want a formula give total quanitity break up frm other sheet Aristotle Excel Worksheet Functions 1 June 23rd 06 09:01 AM
have a cell give warning billy boy Excel Discussion (Misc queries) 11 December 15th 05 07:43 PM
can I use x in one cell and give it a value of 2 in another? dk Excel Discussion (Misc queries) 2 October 11th 05 02:36 PM


All times are GMT +1. The time now is 06:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"