User form data to 2 different places

Chris Packet

New Member
Joined
Feb 24, 2005
Messages
6
Is there any way can you send information enterd into a user form to two seperate worksheets and certain cells in these worksheets.
Is there any way around not being able to have two control sources or is there some useable VBA code? please help!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Chris Packet,

WELCOME to the Board.

Yes you can do that. What would you like to do precisely.
Provide some sample data, so we can adapt some code to your circumstances...

example:
Code:
Private Sub TextBox4_Change()
Sheets(1).Range("A1") = TextBox4
Range("yourrange") = TextBox4
End Sub
kind regards,
Erik
 
Upvote 0
an alternative would be to have a macro copy and paste from the control soucre to the second worksheet.

but Erik's solution is much more tidy
 
Upvote 0
In fact I don't like control source and prefer to feed the userform with the userform_initialize event.


Code:
Private Sub UserForm_initialize()
Textbox4 = range("yourrange")
End Sub
kind regards,
Erik
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,550
Members
449,088
Latest member
davidcom

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