+ Reply to Thread
Results 1 to 3 of 3

Save Excel sheet in CSV format

  1. #1
    Registered User
    Join Date
    05-16-2014
    MS-Off Ver
    Excel 2003
    Posts
    3

    Save Excel sheet in CSV format

    Hi,

    I am new with VBA and need your help for a script to transform a sheet to CSV files. This file will be an input for a query.

    The starting sheet has lot of text cells with empty columns and rows between them, without pattern.
    I need to do the following:
    -Copy the original sheet and work on the renamed copy
    -Remove all cells with bold font text (these are titles)
    -Create a new sheet
    -Transform the table to 1 column in the new sheet (no order required)
    -Remove empty rows
    -Save as CSV files with 2950 rows maximum each, with same name+number

    I did the beginning with macro:
    Please Login or Register  to view this content.
    I have read the Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select should not be used but I don't know what to use instead.

    Could you help me for that. I'll write a second thread to perform the population of the original file with the answer.
    Many thanks

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,177

    Re: Save Excel sheet in CSV format

    ActiveWorkbook.SaveAs pathName , xlCSV

  3. #3
    Registered User
    Join Date
    05-16-2014
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Save Excel sheet in CSV format

    Thanks ranman256

    This is for the last step, but what about Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select?
    Do you think I can use it?
    Do you have a good script example to transform 1 table to 1 column?

+ 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. [SOLVED] Macro to save excel sheet to a specified location and in txt format
    By urmas97 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-11-2013, 05:35 AM
  2. [SOLVED] Sheet to be pasted as values & format and save on desktop
    By sushil10s in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2013, 06:21 AM
  3. Save Single Sheet from multiple sheet workbook as MSDOS CSV format
    By BBen in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-11-2012, 08:34 AM
  4. VBScript Code to Save an Excel File in Excel 97-2003 Format
    By HishamSingalaxana in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-03-2010, 04:34 AM
  5. [SOLVED] wanting to save HTML format in one sheet
    By Marcos Hercules in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2006, 05:05 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