Thread
:
Run macros macro
View Single Post
#
4
Posted to microsoft.public.excel.misc
Don Guillett
external usenet poster
Posts: 10,124
Run macros macro
IF?? the macro is in the workbook try
CBRunMacros Macro()
CBcellformat
mcrInsertTwoRowsOnEmpty
CBSubtotal
range("f1,g1,i1,j1").EntireColumn.AutoFit
End Sub
--
Don Guillett
SalesAid Software
"blazzzercat via OfficeKB.com" <u30352@uwe wrote in message
news:6e3e5a56b393e@uwe...
I recorded the following macro to run three other macros. The code
references
a particular workbook name. How do I change that so it will run in any
workbook
Thanks so much.
Sub CBRunMacros()
'
' CBRunMacros Macro
'
'
Application.CutCopyMode = False
Application.Run "'DFC MUSA AR Credit Balances 013107.xls'!CBcellformat"
Application.Run _
"'DFC MUSA AR Credit Balances 013107.xls'!mcrInsertTwoRowsOnEmpty"
Application.Run "'DFC MUSA AR Credit Balances 013107.xls'!CBSubtotal"
Columns("F:F").EntireColumn.AutoFit
Columns("G:G").EntireColumn.AutoFit
Columns("I:I").EntireColumn.AutoFit
Columns("J:J").EntireColumn.AutoFit
End Sub
--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200702/1
Reply With Quote
Don Guillett
View Public Profile
Find all posts by Don Guillett