+ Reply to Thread
Results 1 to 5 of 5

Save current WS as PDF, under specific name & location

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    59

    Save current WS as PDF, under specific name & location

    Hi guys,
    One of the co-workers I work with, made a macro that will save the current worksheet in a specific folder and under a specific name. Please find the code below:

    Please Login or Register  to view this content.
    Cell B50 contains the following:
    Please Login or Register  to view this content.
    Cell B25 contains the coworkers' information.

    My question is: Instead of referencing cell B50, can the formula be integrated into the macro?

    Thanks.
    Last edited by amar05; 08-09-2013 at 03:32 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    Win10/MSO2016
    Posts
    12,963

    Re: Save current WS as PDF, under specific name & location

    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    08-30-2012
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: Save current WS as PDF, under specific name & location

    Hi protonLeah,
    Thank you for your reply. Most of the code works. The only thing that's it not doing is; when B25 is empty, it doesn't include "2000". Any ideas why?

    Thanks

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    Win10/MSO2016
    Posts
    12,963

    Re: Save current WS as PDF, under specific name & location

    amar05: "Cell B25 contains the coworkers' information."

    Since I don't know what that info is, you can try this mod:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-30-2012
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: Save current WS as PDF, under specific name & location

    It works like a charm.

    Thank you so much.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 07-11-2013, 02:08 AM
  2. Replies: 1
    Last Post: 06-30-2013, 05:58 PM
  3. Modify Default Open/Save to Current File Location
    By msmithdynamicsgp in forum Excel General
    Replies: 0
    Last Post: 09-21-2011, 04:55 PM
  4. Save to specific location
    By LB79 in forum Excel General
    Replies: 2
    Last Post: 08-25-2005, 06:02 AM
  5. Replies: 0
    Last Post: 04-05-2005, 05:08 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1