tderb001
New Member
- Joined
- Oct 12, 2020
- Messages
- 2
- Office Version
- 365
- 2019
- 2016
- 2013
- 2010
- Platform
- Windows
I have an excel macro that loops through table body cells on each worksheet and inserts a cell formula using a combination of text strings. There are three worksheets.
The macro works fine on worksheet 1 and 3, but on worksheet 2, the macro errors out with an application-defined or object-defined error. The error goes away when I remove all special characters from the formula text strings.
The special characters I use are ( " and @ . I have tried using the special characters within quotations like "@" and I have tried using the Chr(64) function to insert the special character. The macro works fine in Excel 2016, but it is breaking in Excel 2010. What is going wrong?
The macro works fine on worksheet 1 and 3, but on worksheet 2, the macro errors out with an application-defined or object-defined error. The error goes away when I remove all special characters from the formula text strings.
The special characters I use are ( " and @ . I have tried using the special characters within quotations like "@" and I have tried using the Chr(64) function to insert the special character. The macro works fine in Excel 2016, but it is breaking in Excel 2010. What is going wrong?