LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 371
Default Find and Replace and Update Links issue

Hi

the following snippet opens a workbook in Excel 2003, copies a sheet with
the previous month's data and renames it as the current month. It also needs
to replace references to the previous month's workbook with references to the
corresponding month's workbook:

Set tempBk = Workbooks.Open(temp, 0)
Set tempWs = tempBk.Worksheets(prevMon)
tempWs.Copy Befo=tempWs
Set newWs = ActiveSheet
newWs.Name = currMon
newWs.Range("C9:J132").Replace data1Part, data2Part

The problem I am having is that when the replace occurs, each of the
individual cells altered brings up a prompt to update the link to the new
data. Given there are nearly 1000 cells, I don't want the user to have to
answer all of these individually. Is there a way to automate this process?

--
There are 10 types of people in the world - those who understand binary and
those who don't.
 
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
FIND & REPLACE ISSUE William Excel Discussion (Misc queries) 6 September 2nd 09 02:45 PM
Excel Issue: Links within a Workbook don't appear to update Southwest Scott Excel Discussion (Misc queries) 0 April 20th 07 09:04 PM
find, replace, update links cinvic Excel Discussion (Misc queries) 0 December 15th 06 02:01 PM
A troubling issue with external links update and workboon_open macro Alseikhan[_7_] Excel Programming 1 April 12th 06 09:06 PM
Replace Update Links prompt Steph[_6_] Excel Programming 2 October 19th 05 04:02 PM


All times are GMT +1. The time now is 01:32 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"