Assuming your TextBoxes are both named TextBox1 on their respective sheets, and assuming these TextBoxes are located on Sheet1 and Sheet2, put this line of code in your macro...I am looking to transfer text from an Activex Textbox in one sheet to another Activex Textbox in another sheet?
I'm about to go to sleep, so I won't be available for awhile, but the code worked for me. Not sure what you meant by "opened designed mode on the sheet I want the text transferred to"... you should be putting the code in the code module for the worksheet containing the TextBox you are typing into (that is, the sheet containing TextBox3).I was trying not use macro. I opened designed mode on the sheet I want the text transferred to and entered the code below but it did not work.
Private Sub TextBox3_Change()
Sheets("Case Details").TextBox1.Text = TextBox3.Text
End Sub
Since you want to type into the TextBox on Sheet2, double click that TextBox (while in Design Mode) and copy/paste this code into the Sheet2 code module that opened up...Rick is there anyway I can send you the Excel sheet for you to check? I just want to populate Sheet3 Textbox1 with the text from Sheet2 Textbox1. Many thanks Manny
Private Sub TextBox1_Change()
Application.EnableEvents = False
Sheets("Sheet3").TextBox1.Value = TextBox1.Value
Application.EnableEvents = True
End Sub
Sorry, I forgot to change my test sheet name (Sheet3) to your actual sheet name (). In the code below, you need to change the Sheet3 to your sheet's actual name.Hi Rick,
Apologies but it does not seam to work. Now I get and error
As soon as I type any thing on Textbox1 from Sheet 2 a Window shows up with an error.
Run-Time Error "9"
Subscript out of range
[CODE]Private Sub TextBox1_Change()
Application.EnableEvents = False
Sheets("[B][COLOR="#FF0000"]Sheet3[/COLOR][/B]").TextBox1.Value = TextBox1.Value
Application.EnableEvents = True
End Sub