LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 266
Default Global replace a reference to a worksheet

This is a long story, but I'll give the crux of the issue. We have a large
workbook with many worksheets. Most of the worksheets have hundreds of
formulas that refer to a worksheet called "Sales". There is a macro that
runs and updates "Sales" from another file. Something isn't working right
now - and it seems to be a corrupt "Sales" worksheet. In any case, we have a
backup of the file and we can use the "Sales" tab from the backup. But there
is a lot of new data in the other sheets that we'd like to keep. I've been
able to rename "Sales" to "Sales.bad" and bring in the sheet Sales that runs
the macro perfectly. The problem is changing all the formula references from
Sales.bad (renaming the sheet changed them all) to "Sales". Is there some
VBA routine that I could implement to edit each formula in a worksheet and
replace "Sales.bad! ........." with "Sales! ....." Thanks for any help
on this.
 
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
Replace worksheet reference in multiple graphs kippers Excel Discussion (Misc queries) 1 March 9th 09 04:19 PM
Edit-Replace worksheet reference nightmare MJL Excel Discussion (Misc queries) 1 October 10th 06 11:30 AM
how do I do a global replace in all sheets in a workbook? knutknut Excel Worksheet Functions 3 June 26th 06 04:57 PM
find and replace cell reference to a new worksheet Johnny Van Excel Worksheet Functions 0 June 23rd 05 03:41 AM
GLOBAL search and replace Rebecca New Users to Excel 2 February 26th 05 12:30 AM


All times are GMT +1. The time now is 06:03 PM.

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"