Launch application, copy data and save

grsaltzman

New Member
Joined
Apr 23, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello All –

I’m trying to write some script for an excel file, my skill level is novice at best and could really use some help. My end goal is to embed this code in a button on the excel spreadsheet.

Here is the set up:

I have data in column A starting at line 11, the number of lines is variable. I then have a formula in column J, again starting at line 11, I would like to copy cells of Column J that are getting data from Column A (Not sure how to phrase this better. If there is data in A11-A44, I would like to copy J11-J44…). I need to paste this information in a newly created Notepad file, I would then like to have that notepad file saved to the users desktop with the following naming convention “{whatever the path is to the desktop}\TXT\{contents of cell A5}_TXT.LST”

It would also be nice to return a window to the user, that says something to the effect of:

“File blah,blah, blah has been created. (showing file name and path)”

Would you like to open this (with 3 selection boxes: Open File, Open Folder, No)?
 

Excel Facts

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

Forum statistics

Threads
1,214,920
Messages
6,122,279
Members
449,075
Latest member
staticfluids

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