LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,514
Default macro to print xps then save with name value in (B2)

On Friday, May 9, 2014 10:28:54 PM UTC+10, GS wrote:
Hello,


I have a macro which will print (A1:F20) with XPS, is there a way
to save with a filename automatically, with the filename taken
from (B2). It will be the same path just a different name each
time.


all help much appreciated


regards


Ditchy


Ballarat


Australia




Well.., couldn't you just pass the value in B2 when you specify the

filename in the SaveAs action? ..perhaps!



--

Garry



Free usenet access at http://www.eternal-september.org

Classic VB Users Regroup!

comp.lang.basic.visual.misc

microsoft.public.vb.general.discussion


Hi Garry,
not sure what you mean, would you be able to explain it to me.
I would like it to be done through a macro when I click a button on
the sheet.

regards
Ditchy


Best if you record a macro to 'grab' whatever code it generates while
doing the task manually. See what it gives you to work with. Post back
the code if you need further assistance...

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to automatically print & save as PDF PaulaK Excel Discussion (Misc queries) 1 May 15th 09 10:55 PM
how do i create a macro that will print and save my file to sharep medic Excel Programming 12 January 9th 08 01:39 PM
Macro to save file and print document abxy[_7_] Excel Programming 2 January 14th 04 03:45 AM
Save, Save As, Print Grayed Out when instance created via VBA/VB6 Jake Marx[_2_] Excel Programming 0 September 22nd 03 10:16 PM
Save, Save As, Print Grayed Out when instance created via VBA/VB6 jaf Excel Programming 0 September 22nd 03 09:23 PM


All times are GMT +1. The time now is 08:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"