Populate userform with values from another sheet.

ipbr21054

Well-known Member
Joined
Nov 16, 2010
Messages
6,160
Office Version
  1. 2024
Platform
  1. Windows
I’m asking now as I have an early start tomorrow so hoping to save me some time in waiting for a helpful reply.
Thanks.


I have a userform which will have multiple text boxes.

These Textboxes will be populated from values in cells on another sheet.

I’m not sure how to write it but if you can advise I can then follow & complete this in the morning.

I am working on a sheet called MCINFO & this is where the form will be opened from.

The info needs to be taken from a sheet called MCVIN

So textbox1 should be populated with info from sheet MCVIN in cell F5

I can then follow the advice given to complete the others.
 
If I understand your intention, the code in the UserForm1 module
Code:
Private Sub UserForm_Initialize()
    TextBox1.Value = Worksheets("MCVIN").Range("F5").Value
End Sub
 
Upvote 0
Solution

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