Export worksheets from multiple workbooks into pipe delimited txts

anshul03

New Member
Joined
Apr 30, 2012
Messages
3
Hi,

I am new to this forum and am hugely impressed by the skill level of the experts here at VB. I am currently stuck by a problem with details as below. I need to develop an Excel 2007 macro to:
- Ask the location of the folder where approx 40 excel files are located (each excel workbook has a variable no. of worksheets; 120 worksheets overall across all workbooks)
- Open each excel file one by one and for each worksheet identify the used cells and export the worksheet into a double pipe delimited text file with the name of each text file same as that of the worksheet
Please note that
- each worksheet needs to be exported to a separate text file
- within the destination folder, all the text files for a particular workbook need to go into a sub-folder by the name of the workbook (this sub-folder might need to be created by the macro)
- there are a few hidden worksheets in each workbook and I would not want them to be exported to text files
- there are a few hidden rows within the used area of each worksheet and I would not want them to be exported to text files

I have been trying to work on this for quite a few days by utilizing the info available on different posts. But everywhere I have been able to find macros that address only different parts of the problem and it has not been possible for me to marry those parts. Any urgent help on this shall be hugely appreciated.

Thanks,
Anshul
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,216,569
Messages
6,131,466
Members
449,652
Latest member
ylsteve

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