+ Reply to Thread
Results 1 to 6 of 6

Copy Worksheet and Export as .csv

  1. #1
    Forum Contributor
    Join Date
    08-23-2013
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 365
    Posts
    166

    Copy Worksheet and Export as .csv

    I am exporting about 30 worksheets in my file to a location to store them as csv's. I am looking to add in 2 things to the code:
    - applying a color to a few of the rows in the destined csv
    - only exporting visible cells into the csv

    Please Login or Register  to view this content.
    Appreciate the help

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Copy Worksheet and Export as .csv

    As far as I know, csv files are plain text files and therefore colored rows are not permitted.

  3. #3
    Forum Contributor
    Join Date
    08-23-2013
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 365
    Posts
    166

    Re: Copy Worksheet and Export as .csv

    And where will I list the sheets that I want to export as csv in this code?

  4. #4
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Copy Worksheet and Export as .csv

    There are various methods.

    1. Have a unique uniform feature in the name of the files you want to transfer like "2csv...."
    you can setup a loop looking for every file with that feature. The feature could also be in the heading setup ie. "Family name1" in the the A column.
    2. Setup a master file with all the names and have the macro read it.

  5. #5
    Forum Contributor
    Join Date
    08-23-2013
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 365
    Posts
    166

    Re: Copy Worksheet and Export as .csv

    I have about 30 worksheets, can you help put in the lines that I need to replace and code that will do that?

  6. #6
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Copy Worksheet and Export as .csv

    I can but we need to define the project.

    1. Are all the worksheets in one folder?
    2. Are there any other worksheets that need not to be transferred in the same folder (therefore the need of a common trait)
    3. What's the ultimate use of the *.csvs
    4. Do all transferable worksheets share the same line structure? if not are they to keep the same structure?

    lest start with that...

+ 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. Copy a range to other worksheet & Export to pdf format
    By mambo84 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-28-2013, 04:11 AM
  2. Export to new worksheet
    By DaveMathews in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 02-23-2011, 10:56 AM
  3. Export Columns to New Worksheet
    By Ray789 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-26-2010, 01:09 PM
  4. Export Worksheet to Image
    By RickyC in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-22-2009, 07:46 AM
  5. [SOLVED] Needed: worksheet export help
    By mainemike in forum Excel General
    Replies: 1
    Last Post: 02-23-2006, 11:10 PM

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