Forum Discussion
Lorenzo Kim
Jul 14, 2018Bronze Contributor
runtime error 1004 : Method range of object - 'Global' failed
How do I correct this? (kindly see images) many many thanks
- Jul 17, 2018
You can drop the WorksheetFunction portion for easier readability:
New_text = Application.Substitute(Cell_reference,"TOTAL","")
Man Fai Chan
Jul 14, 2018Iron Contributor
I suspect the LastRow - 1 gives zero or negative number.
Lorenzo Kim
Jul 14, 2018Bronze Contributor
Mr Chan
I think it is -- the lastrow was 0!
Thank you for your reply...