Hello,
I am trying to save a portion of a worksheet to a .csv file keeping the same format that is on the original worksheet (ie date formatted mm-dd-yyyy, etc for each column). To start a .csv file is imported to the worksheet and column formatting (insert/delete/move) is done at that time. The input file can vary in row length from file to file but columns are the same 7. I want the range to be captured from a4, lastCol 7 to lastRow, lastCol 7. Most of the columns are text and number but one is a date that has to be mm-dd-yyyy format. I need the output file to be .csv with the data starting in a1 and formatted to keep the already formatted data the same from the original worksheet. Can anyone provide sample code for this?
I am trying to save a portion of a worksheet to a .csv file keeping the same format that is on the original worksheet (ie date formatted mm-dd-yyyy, etc for each column). To start a .csv file is imported to the worksheet and column formatting (insert/delete/move) is done at that time. The input file can vary in row length from file to file but columns are the same 7. I want the range to be captured from a4, lastCol 7 to lastRow, lastCol 7. Most of the columns are text and number but one is a date that has to be mm-dd-yyyy format. I need the output file to be .csv with the data starting in a1 and formatted to keep the already formatted data the same from the original worksheet. Can anyone provide sample code for this?