How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Lindie-mod Your Own Question

Lindie-mod
Lindie-mod,
Category: Microsoft Office
Satisfied Customers: 5
Type Your Microsoft Office Question Here...
Lindie-mod is online now
A new question is answered every 9 seconds

what EXCEL xlFileFormat parameter do I use to save an EXCEL

Customer Question

what EXCEL xlFileFormat parameter do I use to save an EXCEL 2007 xlsm file
Submitted: 1 year ago.
Category: Microsoft Office
Expert:  Dr. Dan replied 1 year ago.

Dr. Dan :

Hi my name is XXXXX XXXXX I will be assisting you with your problem today!

Dr. Dan :

This may be an issue between 2003 and 2007

Dr. Dan :

Office 2003 considers Normal xls and not xlsx. In 2007 to save a xlsx file you use the XLworkbookDefault = 51.

Dr. Dan :

Try using SaveAs('c:\test.xlsx', xlWorkbookDefault);

Dr. Dan :

or equivalent for how you have that set up

Dr. Dan :

Let me know if you are now able to open the generated file

Expert:  Dr. Dan replied 1 year ago.
Our chat has ended, but you can still continue to ask me questions here until you are satisfied with your answer. Come back to this page to view our conversation and any other new information.

What happens now?

If you haven’t already done so, please rate your answer above. Or, you can reply to me using the box below.
Customer: replied 1 year ago.

ActiveWorkbook.SaveAs Filename:= _
template_file, FileFormat:= _
xlWorkbookDefault, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _
, CreateBackup:=False


 


Message states: "This extension cannot be used with the selected file type"


 


Remember this is an xlsm file

Customer: replied 1 year ago.

Answer did not work.

Expert:  Dr. Dan replied 1 year ago.
Just try using

ActiveWorkbook.SaveAs Application.UserLibraryPath & "Test.xlsx", FileFormat:=51

That will save Test.xlsx in the .xslx format in your User path (sometimes saving to C:\ will be problematic if you need administrative priveleges)
Customer: replied 1 year ago.

So I am thinking the only change you are suggesting is to substitute '51' for the xlFileType property and save to a folder off the root and force the file name to "Test.xlsx".


 


Skip

Expert:  Dr. Dan replied 1 year ago.
It is just a test to see if your save will work for the .xlsx file
Customer: replied 1 year ago.

Works for xlsx......


 


When I run a test with an xlsm file type it fails as follows:


 


Message states: "This extension cannot be used with the selected file type"

Expert:  Dr. Dan replied 1 year ago.
My bad, I forgot you were trying to save to .xlsm, try the following:

ActiveWorkbook.SaveAs Application.UserLibraryPath & "Test.xlsm", FileFormat:=52
Customer: replied 1 year ago.

Dan please read my responses carefully.


 


My last response I told you I ran the test with xlsm and it failed with the following message:


 


Message states: "This extension cannot be used with the selected file type"


 


 


You are starting to waste my time!!!!

Expert:  Dr. Dan replied 1 year ago.
Sorry I can't work with you in a timely manner right now, let me open this up to other experts to see if they can help you more efficiently.
Customer: replied 1 year ago.

52 is the answer

Expert:  Lindie-mod replied 1 year ago.
Hi, I’m a moderator for this topic. It seems the professional has left this conversation. This happens occasionally, and it's usually because the professional thinks that someone else might be a better match for your question. I've been working hard to find a new professional to assist you right away with your excel issue, but sometimes finding the right professional can take a little longer than expected.

I wonder whether you're OK with continuing to wait for an answer. If you are, please let me know and I will continue my search. If not, feel free to let me know and I will cancel this question for you. Thank you!

Lindie
Customer: replied 1 year ago.

Not needed I found the issue and relayed to the last "expert".


 


Never again will I use this service.

JustAnswer in the News:

 
 
 
Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.
 
 
 

What Customers are Saying:

 
 
 
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
< Last | Next >
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
  • Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
  • Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
 
 
 

Meet The Experts:

 
 
 
  • jstinehelfer

    Information Systems Manager

    Satisfied Customers:

    36
    A+ Comptia Certified computer repair
< Last | Next >
  • http://ww2.justanswer.com/uploads/JS/jstinehelfer/2012-6-6_215146_Pictureofme1.64x64.png jstinehelfer's Avatar

    jstinehelfer

    Information Systems Manager

    Satisfied Customers:

    36
    A+ Comptia Certified computer repair
  • http://ww2.justanswer.com/uploads/JA/JasonJames122/2011-12-16_135647_jasonjamesheadshotweb.64x64.jpg JasonJames122's Avatar

    JasonJames122

    Computer Enthusiast

    Satisfied Customers:

    0
    I manage all information systems (network of Windows PC's and servers with Microsoft Office products) for a small business
  • http://ww2.justanswer.com/uploads/JE/jessmagz/2012-6-6_18129_jm.64x64.jpg Jess M.'s Avatar

    Jess M.

    Computer Support Specialist

    Satisfied Customers:

    301
    Computer Software Specialist for more than 10 years
  • http://ww2.justanswer.com/uploads/CH/chutz747/2011-11-6_14231_me.64x64.jpg The-PC-Guy's Avatar

    The-PC-Guy

    Computer Manager

    Satisfied Customers:

    274
    20 years experience providing remote computer support
  • http://ww2.justanswer.com/uploads/SP/spherrod/2012-6-6_174244_1000852.64x64.JPG Steve Herrod's Avatar

    Steve Herrod

    Computer Support Specialist

    Satisfied Customers:

    125
    Trained in Microsoft Office from 2000 through to latest version 2010.
  • http://ww2.justanswer.com/uploads/SE/Seashore2011/2011-12-6_33418_111205223015.64x64.jpg Chris L.'s Avatar

    Chris L.

    Support Specialist

    Satisfied Customers:

    124
    Certified Expert with over 10 years experience.
  • http://ww2.justanswer.com/uploads/KR/krkljatorm/2012-6-24_153417_ITMiro.64x64.jpg IT Miro's Avatar

    IT Miro

    Computer Scientist

    Satisfied Customers:

    97
    Bachelor's Degree in Information Technology, Microsoft Certified Professional