Enforcing Macro-enabled saves
Hi group.
I have an Excel workbook which contains VBA. It is used by some Excel
'03 and Excel '07 users.
I need to find a way to make the Excel '07 users save it as macro
enabled. I was thinking the right way to do that would be some code as
a Workbook_BeforeSave subroutine.
Could anyone suggest some code that I could insert into the
Workbook_BeforeSave subroutine to:
1. Firstly, check whether the user is using '07 (because if they
aren't it isn't an issue); and
2. If they are using '07, make the "Save As Type" drop-down box in the
resulting "Save As" dialog box show Macro-enabled workbook as a
default.
Any suggestions would be greatly appreciated. I have a working
knwoledge of VBA but some of these more advanced commands I'm still
learning.
Thanks,
Darren
|