Search worksheet from UserForm

Pervaiz

New Member
Joined
Aug 24, 2022
Messages
2
Office Version
  1. 2010
Platform
  1. Windows
I have a userform with a
combobox having list different stores names i.e ("FOR", "EMP", "PAK", "GUJ") as i select a store in combobox the appropriate store excell worksheet opens under userform

I have few textboxes on the userform where i enter order number of the concern store in textbox1

i want when i enter order number in textbox1 other textboxes populate as per its information entered in its sheet columns with find or vlookup function from the columns please guide me any one a code for it

thanks
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
i am using this code to find the record from "FOR" sheet as i enter some order number in textbox1, i want to find all the enteries in columns against this order number to populate in ret of the textboxes in userform2

UserForm2.TextBox2.Text = Application.WorksheetFunction.VLookup(UserForm2.TextBox1.Text, Worksheets("FOR").Range("A9:Y2500"), 4, 0)
 
Upvote 0

Forum statistics

Threads
1,214,912
Messages
6,122,200
Members
449,072
Latest member
DW Draft

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