+ Reply to Thread
Results 1 to 8 of 8

Save as file from .lst to .xls

  1. #1
    Forum Contributor
    Join Date
    05-11-2013
    Location
    Mumbai
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    270

    Save as file from .lst to .xls

    Dear Friends,

    I have 350 .lst separate files.
    These files are saved in a particular folder.

    I need to save these files as .xls files after performing the "Delimited" action and formatting the file as per the attachment.

    Is there a macro which saves these files automatically without manually opening these files.

    I also need to save these file as .pdf.

    Its really time consuming.

    Please assist.

    I am attaching the raw .csv file and output .xls file for your reference. ( consider .csv as .lst since I am not able to upload .lst file)
    Last edited by lalaarif1; 09-26-2017 at 01:47 PM.

  2. #2
    Forum Contributor
    Join Date
    05-11-2013
    Location
    Mumbai
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    270

    Re: Save as file from .lst to .xls

    Friends,

    Any luck?

    Please help.

  3. #3
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Save as file from .lst to .xls

    A quick google of batch convert csv to xls vba, gives many solutions, including

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    05-11-2013
    Location
    Mumbai
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    270

    Re: Save as file from .lst to .xls

    Thanks a ton.

    Macro is working fine.
    You made my day.

    Cheers.

  5. #5
    Forum Contributor
    Join Date
    05-11-2013
    Location
    Mumbai
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    270

    Re: Save as file from .lst to .xls

    Dear friends,

    This is in continuation of above post.

    Is there a macro which converts .xlsx file to pdf files.
    I need to convert approx. 350 .xlsx files to pdf files.

    Please help.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,862

    Re: Save as file from .lst to .xls

    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  7. #7
    Forum Contributor
    Join Date
    05-11-2013
    Location
    Mumbai
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    270

    Re: Save as file from .lst to .xls

    Thanks a lot...

    I took the macro from the link.

    But little problem...

    How do I do the setting of fitting all the column in 1 page by shrinking it.

    Currently, column are getting divided in multiple pages.

    Please help.

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,862

    Re: Save as file from .lst to .xls

    I don't understand your question. There are no pages in Excel. Please explain in Excel terms what is happening. Perhaps a sample example of what is happening. Your explanation is lacking enough details to understand the issue.

+ 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. file save as tab delimited change to direct file save
    By bkanealy in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-13-2016, 02:15 PM
  2. save as which remains the master file and save new file
    By ash3angel in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-16-2015, 04:13 AM
  3. Macro needed to open "File Save As" and change save file type
    By blainerhett in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-28-2014, 02:40 PM
  4. Replies: 1
    Last Post: 09-05-2013, 02:39 PM
  5. Save as macro that specifies file type, file location and takes file name from three cells
    By ExcelFailure in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-13-2013, 10:09 PM
  6. Replies: 0
    Last Post: 01-27-2013, 12:13 PM
  7. Replies: 0
    Last Post: 03-09-2005, 06:06 PM

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