Please help. This kind of problem really frustrates me.
I'm trying to replace the commented out recorded code with a line that avoids selecting the textbox. But all my attempts at finding the correct syntax have failed with Error 438 "Object doesn't support this property or method". What is the correct syntax for these first two lines of commented out code?
Using the Locals window, I can see that the parent of the selected textbox is sheet1, "Instructions". But I cannot find the right object to put the text into.
Thanks for your help,
Higrm
I'm trying to replace the commented out recorded code with a line that avoids selecting the textbox. But all my attempts at finding the correct syntax have failed with Error 438 "Object doesn't support this property or method". What is the correct syntax for these first two lines of commented out code?
Code:
' Sheets("Instructions").Shapes("Textbox 1").Select
' Selection.Characters.Text = Sheets("h1").Range("r14").Value
'On Error Resume Next
Sheets("Instructions").TextBox1.Text = "Some text"
Sheets("Instructions").TextBox("Textbox 1").Text = "Some text"
Sheets("Instructions").TextBox("Textbox 1").Value = "Some text"
Sheets("Instructions").TextBox("Textbox 1").TextFrame.Text = "Some text"
Sheets("Instructions").TextBox("Textbox 1").TextFrame2.Text = "Some text"
Sheets("Instructions").TextBox("Textbox 1").Characters.Text = "Some text"
Sheets("Instructions").Shapes("Textbox 1").Text = "Some text"
Sheets("Instructions").Shapes("Textbox 1").Value = "Some text"
Sheets("Instructions").Shapes("Textbox 1").TextFrame.Text = "Some text"
Sheets("Instructions").Shapes("Textbox 1").TextFrame2.Text = "Some text"
Using the Locals window, I can see that the parent of the selected textbox is sheet1, "Instructions". But I cannot find the right object to put the text into.
Thanks for your help,
Higrm
Last edited: