Hi everyone,
I'm having some trouble trying to figure this out as my experience in excel is basically one big google search. I've been tasked with putting together a workbook for our vendors and I'd like to try and make it as easy for them as possible.
What I have is a workbook with 2 sheets. Sheet1, is where I'd like the user to stay, which has a commandbutton to display a userform. Sheet2 has some named ranges for the userform.
The userform has 3 dependant comboboxes. ComboBox1 RowSource = Manufacturer (named range located on sheet2). ComboBox2 and ComboBox3, I found some VBA code to fill in the the rest of the data from Sheet2.
ComboBox3 is the same code
On Sheet1, the button I have created opens the userform and clears a specific area.
I have a bunch of tables on Sheet1 which will be hidden from the user as I want to freeze the panes, stopping the user from scrolling down.
Now for my problem.
Within my userform I have another button called "Import". What I would like this button to do, based on the selection which the user made in all 3 comboboxes, I'd like them to click the import button which then copies the correlating table or range to the specific area I mentioned before.
E.g. If ComboBox1 = Toyota
ComboBox2 = Hilux
ComboBox3 = G
Then copy A1755:H1777 or named range to C3
These tables are located from A41 down. The other tables to the right I have other plans for.
My coding / VBA knowledge is virtually non-existent. So if anyone could be kind enough to show me an example which I can use and add to to accommodate about 80 different tables, I'd be incredibly appreciative and you'd be a lifesaver!
Thanks in advance!
**Note: I do have a thread open on Mr Excel.
***Added sample workbook with named ranges.
I'm having some trouble trying to figure this out as my experience in excel is basically one big google search. I've been tasked with putting together a workbook for our vendors and I'd like to try and make it as easy for them as possible.
What I have is a workbook with 2 sheets. Sheet1, is where I'd like the user to stay, which has a commandbutton to display a userform. Sheet2 has some named ranges for the userform.
The userform has 3 dependant comboboxes. ComboBox1 RowSource = Manufacturer (named range located on sheet2). ComboBox2 and ComboBox3, I found some VBA code to fill in the the rest of the data from Sheet2.
Code:
Private Sub Manufacturer_Change()
Me.Model.RowSource = Me.Manufacturer
End Sub
Code:
Private Sub Model_Change()
Me.Options.RowSource = Me.Model
End Sub
Code:
Private Sub SelectionWindow_btn_Click()
Range("C3:J36").Clear
Selection_Window.Show
End Sub
I have a bunch of tables on Sheet1 which will be hidden from the user as I want to freeze the panes, stopping the user from scrolling down.
Now for my problem.
Within my userform I have another button called "Import". What I would like this button to do, based on the selection which the user made in all 3 comboboxes, I'd like them to click the import button which then copies the correlating table or range to the specific area I mentioned before.
E.g. If ComboBox1 = Toyota
ComboBox2 = Hilux
ComboBox3 = G
Then copy A1755:H1777 or named range to C3
These tables are located from A41 down. The other tables to the right I have other plans for.
My coding / VBA knowledge is virtually non-existent. So if anyone could be kind enough to show me an example which I can use and add to to accommodate about 80 different tables, I'd be incredibly appreciative and you'd be a lifesaver!
Thanks in advance!
**Note: I do have a thread open on Mr Excel.
***Added sample workbook with named ranges.
Attachments
Last edited: