Unable to set the text property of the characters class - SP2/SP3 issue?

bellman101

Board Regular
Joined
Aug 20, 2012
Messages
245
Hi all,

I am writing a workflow program for my work. It essentially creates a rounded rectangle auto shape for each new ticket. It then populates the text of the ticket with the ticket number and summary text. This was working fine on several machines including my own (all running Office 2007), but not on some others. On investigation, it will not work on any machines with SP2. I upgraded my machine to SP3 as a test but now I get the same error.

Does anybody know of a workaround as I don't think I could get all machines rolled back to having no service pack.

Here is the snippet of code where it is sticking. Note it gets through the two lines of '.TextFrame.Characters.Font.' without an issue, but then stops at the following: .TextFrame.Characters.Text = TICKET & ": " & SUMM.

I have tried every possible variation. I have tried changing to .select and then selection.text = "text" but this generates a similar error of 'Unable to set the text property of the rectangle class'.

Code:
With ActiveSheet.Shapes(TICKET)
        .Top = Cells(RW, CLn).Top
        .Left = Cells(RW, CLn).Left
        .Width = Range("E8").Width
        .Fill.ForeColor.RGB = Sheets("JOBS").Range("A:A").Find(TYP).Offset(, 1).Interior.Color
        .TextFrame.Characters.Font.Color = Sheets("JOBS").Range("D1").Interior.Color
        .TextFrame.Characters.Font.Size = 8
        .TextFrame.Characters.Text = TICKET & ": " & SUMM
        .TextFrame2.MarginLeft = 0.02
        .TextFrame2.MarginRight = 0.02
    End With

Please if anyone could help that would be great as I'm verging on insanity here!!

Thanks
James
 
Last edited:

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,216,028
Messages
6,128,393
Members
449,446
Latest member
CodeCybear

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top