MACRO | SAVE AS CSV BUT WITH COLUMS AND ROWS INTACT

Mitch777

New Member
Joined
Jun 21, 2022
Messages
3
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi everyone,

I'm struggling with this for several weeks now. I hope someone can help me out. I have a feeling it's possible but it's quite challenging.

For my job I must put article data in Excel file and enrich/adjust it. I have created a Template for this with several macro's. When this is done and it's complete I must upload it in our system. The system can only read macro files. But here is the thing: it only reads CSV's with the data still devided over the columns and rows. I know this is not really where CSV stands for (comma seperated) but there is now other way to read the data in the system. For that I call it "semi convert into CSV file"

I press after each completed file F12>select CSV divided by list seperation>input title (usually "UPLOAD" or "CSV")>save>then click "Yes".

For this step i really want to create a macro which does the same thing in the background and creates a (semi)CSV file in the same folder as the original Excel template. The folder of the Excel template is always different so the path must be dynamic. For example: when I have 3 brands to upload I create 3 folders for these brands for a certain season. I put a copy of the empty Excel template in each folder and then I edit and save them individually for importing in the system. The CSV file can stay closed. It would be nice if the original Excel file stays open.

I already saw a similar thread (I even think it's the only one) but unfortunately it's nog quite the thing I'm looking for.

Save excel macro file as .csv with date to same folder as original file (VBA)

Could someone please help me out to make this very difficult thing happen? I would be very grateful!

Thanks in advance.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
BTW each template file contains the same amount and order of columns, via the column titles.

But vertically each list (range) is different in terms of length
 
Upvote 0
Bump. No specialist who can help me out?

I anything else is needed, please let me know.
 
Upvote 0

Forum statistics

Threads
1,215,006
Messages
6,122,666
Members
449,091
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top