Saveas from cell reference in specific folder

Langchop

New Member
Joined
Sep 22, 2014
Messages
1
Hi All,

I am no expert on vb code and usually get by by pasting chunks of code from forums and tutorials etc.

The first part of my macro, for information/ context is as follows:

A .csv data file is opened and a macro started, which does the following:
  • Open a template .xlsx file (which is read only to preserve its integrity)
  • Copy 2 columns from the .csv file into a sheet on the template .xlsx file
  • apply various filters required for generating a graph on a second sheet in the same .xlsx template file

The coding for the above is sorted and works well, but what I need help with is the second part, which I have been struggling to get right:
Following the above sequence, the following needs to occur:
  • A "Save As" dialogue window to be brought up...
  • Defaulting to a predetermined folder (say C:\folder)
  • Prepopulating the filename with text from a cell reference in the active document (say A:1)
  • Preselecting the file type as .xlsx
Saving must not be automatic, so that the user can revise the prepopulated file name if required, before clicking on save

Some code that I have been playing around with for this last part either saves the file as "FALSE.xlsx" or doesnt save anything at all.

I would appreciate any help anyone can offer

Lang
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,215,432
Messages
6,124,860
Members
449,194
Latest member
HellScout

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