RockandGrohl
Well-known Member
- Joined
- Aug 1, 2018
- Messages
- 810
- Office Version
- 365
- Platform
- Windows
Hi guys,
Have the below code
This has been working perfectly for half a year now, but all of a sudden it appears to be replacing the contents of cell B2.
In summary, I have a list of pickups separated as follows: "Worcester, Bromsgrove, Redditch, Tewkesbury"
This is then copied from B2 to B6, and in the copied list in B6 it's altered to: "Worcester,Bromsgrove,Redditch,Tewkesbury"
For some reason, even though the active cell is clearly B6, it is changing it not only in B2, but also, in every other cell on other sheets too!
Even if I change it to be "range("B6").replace" - it still happens???
Have the below code
VBA Code:
ActiveCell.Replace What:=", ", Replacement:=",", LookAt:=xlPart, SearchOrder _
:=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
This has been working perfectly for half a year now, but all of a sudden it appears to be replacing the contents of cell B2.
In summary, I have a list of pickups separated as follows: "Worcester, Bromsgrove, Redditch, Tewkesbury"
This is then copied from B2 to B6, and in the copied list in B6 it's altered to: "Worcester,Bromsgrove,Redditch,Tewkesbury"
For some reason, even though the active cell is clearly B6, it is changing it not only in B2, but also, in every other cell on other sheets too!
Even if I change it to be "range("B6").replace" - it still happens???