Replace reference to worksheet in a formula via macro
问题 I have a button which produces a new worksheet. I pass the name of the active worksheet (the origin of the clicked button). Clicking the button on a worksheet named "A", produces a sheet "Print" based on the active worksheet "A". The formula of the cells in the "Print" sheet reference "A" (e.g. 'A'!B1). I have a worksheet named "B". When I click the button it should replace the "A" in the formula of all cells in "Print" worksheet. It seems that wildcard in replace doesn't work. For Each cell