D
Don Wiss
In some of my spreadsheets I have one workbook run a macro in another open
workbook. The name of the workbooks are generally created by a macro, and
any apostrophes are removed. But sometimes the user puts them back in. And
it would be nicer to not remove them in the first place. An example line of
code that I'm using is:
Application.Run ("'" & TargetName & "'!HidePolicyPeriods")
How could it be written so apostrophes could be in TargetName?
Don <donwiss at panix.com>.
workbook. The name of the workbooks are generally created by a macro, and
any apostrophes are removed. But sometimes the user puts them back in. And
it would be nicer to not remove them in the first place. An example line of
code that I'm using is:
Application.Run ("'" & TargetName & "'!HidePolicyPeriods")
How could it be written so apostrophes could be in TargetName?
Don <donwiss at panix.com>.