I’m building a report from a template where the template is copied for each row returned from a sql query. This template has a textbox at the top which has some text in red but each time the sheet is copied it turns orange.
I’ve commented out all the other code so I know for certain the copy is the issue:
Dim copySheet As Worksheet = wb.Worksheets(0)
Dim sheet As Worksheet = wb.Worksheets(wb.Worksheets.Add())
sheet.Copy(copySheet)
Is there any way I could set the text box back to red after the sheet has been copied to bypass this issue?