ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   multiple formula editing (https://www.excelbanter.com/excel-discussion-misc-queries/171679-multiple-formula-editing.html)

Gemma

multiple formula editing
 
hi i've set uo a work sheet to link to another i.e 'Week 1'!$C$6 , 'Week
1'!$D$6 and so on i want to change the multiple entries on the spread sheet
to pick up the data on "week2" spreadsheet so the forumal will read 'Week
2'!$D$6, is there a easier way to do this without going thru each cell and
manually changing the formula.
thanks

Ed Cones

multiple formula editing
 
Have you tried a simple Search and Replace on the Edit menu?

"gemma" wrote:

hi i've set uo a work sheet to link to another i.e 'Week 1'!$C$6 , 'Week
1'!$D$6 and so on i want to change the multiple entries on the spread sheet
to pick up the data on "week2" spreadsheet so the forumal will read 'Week
2'!$D$6, is there a easier way to do this without going thru each cell and
manually changing the formula.
thanks


excelent

multiple formula editing
 
Well i ges that renaming sheet "Week 1" to "Week 2" isent fixing your problem
so try

Sub xChange()
Selection.SpecialCells(xlCellTypeFormulas, 23).Select
For Each c In Selection
c.Formula = Application.WorksheetFunction.Substitute(c.Formula , "Week 1",
"Week 2")
Next
End Sub


"gemma" skrev:

hi i've set uo a work sheet to link to another i.e 'Week 1'!$C$6 , 'Week
1'!$D$6 and so on i want to change the multiple entries on the spread sheet
to pick up the data on "week2" spreadsheet so the forumal will read 'Week
2'!$D$6, is there a easier way to do this without going thru each cell and
manually changing the formula.
thanks



All times are GMT +1. The time now is 08:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com