View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
VB Script for Excel VB Script for Excel is offline
external usenet poster
 
Posts: 19
Default how to create a macro that runs other macro in the same workbook

Also, instead of putting the name of the workbook (MyWorkbook.xls), can
i put a name that refers to this workbook? This is because if i change
the filename tomrrow, the macro wouldn't work.

If i use this:
Set z = activeworkbook
Application.Run (z!step1)
and so on
End Sub

This doesn't work. It says cannot find file z.

Thanks again.