The selection is an Excel spreadsheet cell containing the following formula:
=+'[FORECAST MARZO RESTRUCTURING ITALY 20170403 V3.xlsx]DETTAGLIO'!$BA$20
I run the following VBA code:
Selection.Replace what:="[FORECAST MARZO RESTRUCTURING ITALY 20170403 V3.xlsx]", _
Replacement:="[AQ_0617 - solo nuova 272.xlsx]" _
, LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat _
:=False, ReplaceFormat:=False
After executing the code, I expected the formula to become:
=+'[AQ_0617 - solo nuova 272.xlsx]DETTAGLIO'!$BA$20
But nothing happens. Any clues?
source
share