Find & Replace in Excel 2010

DaveL485

New Member
Joined
Nov 6, 2009
Messages
25
I've got a grid of cells with links to other workbooks, with an IF function for error protection. There's over a thousand links per sheet over 13 sheets.
Some of the links are invalid for the time being because data isnt there yet but im trying to build the master sheet for the full year. Ive built Period 1 out of 13, and then pasted the worksheet over for period 2, and then tried to use Find & Replace (manual and VB) to change the target name-

=IF(ISERROR('C:\LINK\[Document Period-1.xls.xls]KPI Input'!K11),"-",'C:\LINK\[Document Period-1.xls.xls]KPI Input'!K11)

Period-1 needs changing to Period-2 but if I run Find & Replace or

Code:
Sub Macro1()
'
' Macro1 Macro
'

'
    Cells.Select
    Cells.Replace What:="Period-1", Replacement:="Period-2", LookAt:=xlPart, _
        SearchOrder:=xlByRows, MatchCase:=True, SearchFormat:=False, _
        ReplaceFormat:=False
End Sub

it throws up and error for every link thats not yet valid.

Is there a way of ignoring this erroring and just carrying on with the replacement? Ive also tried File>Options>When calculating this workbook and unchecking Update links to other documents with no success.

Thanks!
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
The quickest way around this is to create dummy period files ... with the right sheet names but no actual data.
 
Upvote 0
Sorted- I just changed the top row of the grid, copied and pasted formula only down the block and it only pops up one error box for each different workbook name (about 12) which I can live with.

Thanks!
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,762
Members
452,940
Latest member
rootytrip

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top