Within Curent Macro Save As Unique File Name

mpand

New Member
Joined
Nov 7, 2014
Messages
3
I am trying to create a macro button, but I have almost no experience with them so the code is quite confusing.

I have recorded a button which does the following:


  • clicks on C1 in sheet1
  • copies information from A2 in sheet 3
  • pastes information into C1 sheet 1
  • clicks on K1 in sheet 1
  • copies information from A3 in sheet 3
  • pastes information into K1 sheet 1
  • copies auto generated information from sheet 1 (generate as a result of C1&K1) into a different template document
  • prints selection from template document
  • saves template document as new name into a particular folder
  • closes new doc
  • opens template and clears content (not format) then closes
  • clears C1 and K1 in sheet 1
  • then when the button is clicked again, move from (A2,A3) to (A4,A5)


I want to:

  • loop until the A cell in sheet 3 is blank
  • save unique filenames everytime from template file (preferably from a cell in that sheet)


Can anyone help?
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,214,932
Messages
6,122,331
Members
449,077
Latest member
jmsotelo

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