Why does the second line of the code shown below produce an error in Excel 2007 and not in Excel 2003? The error is:
Run Time Error ‘1004’, Unable to set the Text Property of the Characters class
ActiveSheet.Shapes("btnJobSummary").Select
Selection.Characters.Text = "Prepare Job Summary" & Chr(10) & "for " & CurrentJob
CurrentJob is: Public CurrentJob As String
In this case it equals: RockMont Rev 7-9-04
No problem at all in Excel 2003 and earlier. I have tried adding Chr(34) before and after the CurrentJob, but get same error. Any ideas? Thank you.
Run Time Error ‘1004’, Unable to set the Text Property of the Characters class
ActiveSheet.Shapes("btnJobSummary").Select
Selection.Characters.Text = "Prepare Job Summary" & Chr(10) & "for " & CurrentJob
CurrentJob is: Public CurrentJob As String
In this case it equals: RockMont Rev 7-9-04
No problem at all in Excel 2003 and earlier. I have tried adding Chr(34) before and after the CurrentJob, but get same error. Any ideas? Thank you.