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

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,712
Messages
5,833,267
Members
430,200
Latest member
ADLHMA2022

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
Top