Burnsieboy
New Member
- Joined
- Aug 19, 2016
- Messages
- 16
Hi all,
I am updating around 90 workbooks for year end by adding an extra named range to an existing formula
I will be doing this by looping through all of the workbooks to add the 18/19 spend in year to 15/16 16/17 17/18
My issue is that not all of the workbooks have the new named range in them which will result in #Name ?
Does anyone know of a way to handle it 'live' or run a fix after the updates are complete
I am updating around 90 workbooks for year end by adding an extra named range to an existing formula
I will be doing this by looping through all of the workbooks to add the 18/19 spend in year to 15/16 16/17 17/18
Code:
Range("HRPreviousYearsSpend").Select
ActiveCell.Replace What:=")", Replacement:=",Year_18_19_Total_Project_Cost_Total_inc_VAT)", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
My issue is that not all of the workbooks have the new named range in them which will result in #Name ?
Does anyone know of a way to handle it 'live' or run a fix after the updates are complete