+ Reply to Thread
Results 1 to 3 of 3

Export limited column range to csv and only export cells with a value

  1. #1
    Forum Contributor
    Join Date
    03-08-2011
    Location
    London
    MS-Off Ver
    2019
    Posts
    451

    Export limited column range to csv and only export cells with a value

    Hi Team,

    I have an spreadsheet that I use to export to csv ready for uploading to a different system.

    The code I have works well. However, it exports everything. I'd like to achieve two things:
    1. Only export the data up to columns 16 (Col P)
      • Ignoring columns Q and R
    2. Only export the rows where there is a value (and not a formula)
      • The number of rows is variable

    In the attached example. Currently activating the macro would export Columns A - R and Rows 1 - 20 to a CSV. However, I would like it to export Columns A - P and Rows 1 - 5.

    I would like to retain the ability to retain the ability to determine the filename and folder.

    Can anyone help?

    Thanking you in anticipation
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    05-30-2016
    Location
    CZ
    MS-Off Ver
    O365
    Posts
    49

    Re: Export limited column range to csv and only export cells with a value

    Hi,

    does this work for you?ZZZ Test.xlsm

  3. #3
    Forum Contributor
    Join Date
    03-08-2011
    Location
    London
    MS-Off Ver
    2019
    Posts
    451

    Re: Export limited column range to csv and only export cells with a value

    Ab-so-lutel-ly bleedin' perfect harprik.

    Thank you so much and Rep added

    MM

+ 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] export sheet as pdf , problem with fitting column and range
    By mazan2010 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-19-2021, 02:16 AM
  2. Export User Defined range of cells to CSV
    By whiZZfiZZ in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-31-2017, 10:02 AM
  3. [SOLVED] macro to export range of column to PDF
    By mazan2010 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-30-2016, 02:32 PM
  4. VBA macro to export specific range of cells to CSV
    By branys in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-29-2016, 10:58 AM
  5. [SOLVED] VBA Code to Export a Set Range of Cells as CSV
    By PatCell in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-12-2015, 01:43 PM
  6. Replies: 0
    Last Post: 01-11-2006, 11:00 AM
  7. Replies: 1
    Last Post: 11-26-2005, 04:20 AM

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