View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
newguyoldguy newguyoldguy is offline
external usenet poster
 
Posts: 3
Default VBA Apllication.run and macros when spreadsheet name changes

How can change the following statement to run a macro so I do not have to
change the spreadsheet name every time it changes.

Application.Run "'Salesman pay 2.9.xls'!Midmonthnumbersmove"

'Salesman pay 2.9.xls' is the spreadsheet name in this example. I would
just like the statement to run the macro Midmonthnumbersmove no matter what
the spreadsheet name is.