Solved

vba to save xls file without macros

Posted on 2012-03-20
5
226 Views
Last Modified: 2012-03-21
Hi!
I have an excel file containing a macro. As the last step, the macro saves the file as an xlsx, so that it can be distributed via email without the macro.
I now need to duplicate this for users in Excel 2003. How can I do this?
Here is my current code:

Application.DisplayAlerts = False
Application.EnableEvents = False
    ActiveWorkbook.SaveAs Filename:= _
        "F:\buying\catalog production\2013\" & FName & ".xlsx", FileFormat:=xlOpenXMLWorkbook, ReadOnlyRecommended:=False, CreateBackup:=False
Application.EnableEvents = True
Application.DisplayAlerts = True

Open in new window


Thanks!
0
Comment
Question by:etech0
  • 3
  • 2
5 Comments
 
LVL 6

Expert Comment

by:wshark83
ID: 37742960
have you tried just changing the xlsx extention to xls...?
0
 
LVL 10

Author Comment

by:etech0
ID: 37742980
Will it then save without the macro?
0
 
LVL 10

Author Comment

by:etech0
ID: 37742991
I tested it - it saves with the macros. What I need is for it to save without, so I can email it to many people without encountering 'email' issues.
0
 
LVL 6

Accepted Solution

by:
wshark83 earned 500 total points
ID: 37743378
0
 
LVL 10

Author Closing Comment

by:etech0
ID: 37749764
Thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now