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!
 

Some videos you may like

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

erik.van.geit

MrExcel MVP
Joined
Feb 1, 2003
Messages
17,832
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
 

whiteghost

Well-known Member
Joined
Nov 22, 2002
Messages
500
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
 

erik.van.geit

MrExcel MVP
Joined
Feb 1, 2003
Messages
17,832
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
 

Watch MrExcel Video

Forum statistics

Threads
1,122,961
Messages
5,599,061
Members
414,281
Latest member
Engjamal2021

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
Top