How can I export an Excel column to wordpad and save the file using VBA

Oldfozzy

New Member
Joined
Dec 10, 2013
Messages
9
I have to confess I am a complete dummy when it comes to VB.
I have an Excel spreadsheet which I would like to export to notepad.
There are 4 sheets to the spreadsheet.
The first takes input and runs some calculations and gives out figures. The following three take the information and translate it into a series of commands to form 3 scripts (one per sheet) to automatically draw 3 assemblies in Autocad, each sheet forms a seperate script file, one for each assembly.
The commands are all contained in column A rows A1 to A113.
There are blank cells in the column which issue return characters within the script file so must be transfered as blank lines into notepad.
Cell A92 contains text which can be used as a file name to save the file and the file extension should be .scr
I would like to put a button on the sheet to run the macro, I assume I can do this simply?
Can anyone help please.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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