+ Reply to Thread
Results 1 to 4 of 4

with this macro I can't insert the file format xlsx, only xls but I need format xlsx

  1. #1
    Registered User
    Join Date
    08-27-2015
    Location
    Friedberg
    MS-Off Ver
    2010
    Posts
    68

    with this macro I can't insert the file format xlsx, only xls but I need format xlsx

    Please have a look to the following code.
    It works but if I type xlsx instead xls, I get an error.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: with this macro I can't insert the file format xlsx, only xls but I need format xlsx

    Read this to see how to save different formats.

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: with this macro I can't insert the file format xlsx, only xls but I need format xlsx

    You don't even have to type xlsx if you specify fileformat.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  4. #4
    Registered User
    Join Date
    08-27-2015
    Location
    Friedberg
    MS-Off Ver
    2010
    Posts
    68

    Re: with this macro I can't insert the file format xlsx, only xls but I need format xlsx

    Great, thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help with code to convert xls to xlsx and continue with xlsx file
    By 3345james in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-02-2016, 11:47 AM
  2. How to save .xlsx file format to .csv by using macro
    By akmughal in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-19-2015, 05:10 PM
  3. [SOLVED] Macro to convert Xls file format to Xlsx
    By meus in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-06-2015, 04:42 AM
  4. vba send active workbook in outlook in .xls or .xlsx format (ie without macro)
    By EagleInsight in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-04-2014, 03:38 PM
  5. Replies: 3
    Last Post: 01-05-2014, 05:50 AM
  6. Replies: 4
    Last Post: 10-23-2013, 12:54 AM
  7. How to add the columns data of several xlsx files of a folder in another xlsx file
    By ravikumar00008 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-25-2012, 04:29 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1