VBA to Open new file, Prompt, and then save

petersen313

New Member
Joined
Sep 25, 2007
Messages
7
At work we have about 10 different excel programs that we use regularly, and we're trying to create a control panel program to make things easier for the less technically inclined.

The control panel program (currently named "Control Systems.xls" needs to be a shared workbook that has the ability to open, manipulate, and save other excel files. For example, we have a bidding programming (currently named "bid form.xls") that I need to have a macro from within "Control Systems.xls" access.

The user might want to open an existing bid - in which case the macro would simply need to reference a list of already created files (is it possible to create a list in excel by having a macro scan a folder and then make a list of all of the file names in that folder?) and then select from a pull down menu to open the appropriate bid.

If the user wants to create a new bid, I would need to have the macro prompt for a customer name, check to make sure that the customer name given isn't already in use, open "bid form.xls", then do a 'save as' and save the file as the customer name. They would then need to just work on and save the bid as normal.

Any ideas on how to get started (I'm pretty much a novice) would be greatly greatly appreciated.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,214,994
Messages
6,122,633
Members
449,092
Latest member
bsb1122

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