Multiple Step VBA

bloomingcarrot

New Member
Joined
Sep 11, 2014
Messages
4
Hi All. I am VERY new to VBA and limited exposure to Excel. Basically what I would like to do is create a VBA code that I can then assign to a button. What I'd like to happen when the button is pushed is this: a text file is created from cells and prompted to save that file with a filename and to a location.

I would like to export certain cells to a text file. Ideally I'd like it to be formatted at A1, B1, C1 as headers and A2, B2, C2 to come underneath. i.e.
NameUsername
John Doe@johndoe

<tbody>
</tbody>


Would look like in the text file:

Name
John Doe

Username
@johndoe


THEN I would like to be prompted to save this text file to a location and allowed to enter a filename.

I really hope this is doable because it would save me so much time!

Thanks so much!!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,213,536
Messages
6,114,208
Members
448,554
Latest member
Gleisner2

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