Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can my macro select an option in a pull down menu?
I have a macro that saves the template as an xls. file based upon cell
contents. The location is also based upon another cell contents. The macro works correctly....once. After that, the template utilizes the last location|filename that the macro used as the current location and filename in the macro button. The macro looks like this: sPath = Range("B8").Value If Right(sPath, 1) < "\" Then sPath = sPath & "\" ActiveWorkbook.SaveAs sPath & ActiveSheet.Range("B9").Value I am attempting to reset the macro prior to it running by using the "assign macro" and "macro name" on the toolbar(macro button). I think I need to use "MsoCommandBarPopup." command to accomplish this, but I can't get it to work!( or maybe find a way to keep this from happening!) I am new to visual basic and learning fast..... maybe not fast enough! Thanks for your help. Tim |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro to select cells without a certain value and select a menu it | Excel Worksheet Functions | |||
use pull down menu to select a picture | New Users to Excel | |||
use pull down menu to select a picture | New Users to Excel | |||
Select pull down menu | Excel Programming | |||
calculation in menu/tool bar using option buttons and pull-down menus | Excel Programming |