Rename a table based on a selection in a lookup field of a form

Tlewman

Board Regular
Joined
Dec 29, 2002
Messages
67
I have a form with a dropdown that looks up a value in a lookup table and saves this value. I have several other queries that run with the final opening a table. This table needs to match the original value that is in the lookup table.

For example, user opens the form and in the dropdown, they select "NAME 1". NAME 1 is then saved to a table.
Then the user would run queries (macro assigned to a button on the form).
Final step in macro opens a table. I need this table name to be NAME 1

The next user may log in and select NAME 243 from the dropdown... same process, final table opening should be named NAME 243.

Any assistance would be appreciated!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Creating new tables like This does not sound like a good method.
why do you need to do this?
normally there is a set number of tables and you move data in and out of them.
 
Upvote 0

Forum statistics

Threads
1,221,687
Messages
6,161,287
Members
451,695
Latest member
Doug Mize 1024

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