Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Rename Sheet Goofyness

Ok, when doing something like this:

-----------------------------------------------
Sub OrderSheets()

For i = 5 To Worksheets.Count
Worksheets(i).Name = ("Temp" & i)
Next i

For i = 5 To Worksheets.Count
Worksheets(i).Name = (i - 4)
Next i

End Sub

-----------------------------------------------

All the cells in a worksheet that get data from ='1'!H3 get the formula
changed to '3'!H3 <<< if you moved sheet 1 to the sheet 3
position.... How do I make it not auto update the formulas?

I hope you can make sence of what I just asked... my brain is kinda
flubbed today :)

Chuck

  #2   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Rename Sheet Goofyness

Try
=INDIRECT("1!H3")


"Scoobywan" wrote:

Ok, when doing something like this:

-----------------------------------------------
Sub OrderSheets()

For i = 5 To Worksheets.Count
Worksheets(i).Name = ("Temp" & i)
Next i

For i = 5 To Worksheets.Count
Worksheets(i).Name = (i - 4)
Next i

End Sub

-----------------------------------------------

All the cells in a worksheet that get data from ='1'!H3 get the formula
changed to '3'!H3 <<< if you moved sheet 1 to the sheet 3
position.... How do I make it not auto update the formulas?

I hope you can make sence of what I just asked... my brain is kinda
flubbed today :)

Chuck


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Rename Sheet Goofyness

Thank you very much, that does exacly what I needed.

Chuck

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 do i rename a sheet if the rename tab is inactive? Nelson Excel Worksheet Functions 1 March 3rd 10 10:28 AM
macro to: Add new sheet, then rename new sheet with todays date Paul Excel Worksheet Functions 3 September 29th 07 03:17 AM
Move data to new sheet - rename sheet based on criteria ? [email protected] Excel Discussion (Misc queries) 7 May 16th 07 10:22 PM
How to copy a sheet and rename it with the value of two cells from the source sheet? Simon Lloyd[_717_] Excel Programming 0 May 12th 06 01:31 AM
Button to copy sheet, rename sheet sequencially. foxgguy2005[_3_] Excel Programming 9 June 17th 05 01:41 PM


All times are GMT +1. The time now is 08:45 AM.

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

About Us

"It's about Microsoft Excel"