2nd Userform not populating information

emeralds

New Member
Joined
Mar 9, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi All, I am very new to excel VBA (Came acrros this function 2 days ago) and as such i am really lost as to how to fix some things.
I have been able to get everything working except for a couple of things and I am so stumped on how to fix these :(

I have a button in my worksheet to open the userform and create a new entry (This works), then I created a second button linking to a second userform that is suppose to
  1. Check for text input in textbox (on excel page) and see if it exists in another sheet (i.e., a user ID - This function works)
  2. Open the second userform (this works)
  3. and populate existing data in the userform for updating (This does NOT work/ I cannot work out what code to put here.
Point 3 is where I am having issues, code sample seen below.

The form contains a mixture of text boxes and comboboxes.

Any guidance is greatly appreciated! (also if you need further information etc please let me know)
 

Attachments

  • Button.JPG
    Button.JPG
    62.3 KB · Views: 5
  • Excel Buttons.JPG
    Excel Buttons.JPG
    19.6 KB · Views: 5
  • Populate existing data.JPG
    Populate existing data.JPG
    52.8 KB · Views: 5

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
I also forgot to mention that the Combo boxes for the second userform are not populating :( (They are however for the first userform)
 
Upvote 0

Forum statistics

Threads
1,214,914
Messages
6,122,211
Members
449,074
Latest member
cancansova

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