+ Reply to Thread
Results 1 to 4 of 4

Getting macro to save in folder specified on worksheet

  1. #1
    Registered User
    Join Date
    10-23-2007
    Posts
    80

    Getting macro to save in folder specified on worksheet

    Hi there,

    I have a macro that currently saves and prints the sheet I'm working on. At the moment, it saves everything in the same place and always calls the file the same name. In the worksheet, a lookup does actually specify what folder it should be saved in and what name it should be given. How can I write the code so that it pulls up the name and the folder directly from the sheet it's saving?

    Many thanks

    Leanne
    Last edited by lealea1982; 10-09-2008 at 05:54 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You need to attach the workbook, at least tell us what cells you are referring to & post the code.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    10-23-2007
    Posts
    80
    Hi again,

    Currently the code reads:

    Please Login or Register  to view this content.
    But instead I want it to get the folder (ChDir) from cell A16, and the filename from cell B16. I know it's probably quite easy but I'm not sure how to write it.

    Thanks

    Leanne
    Last edited by royUK; 10-08-2008 at 09:43 AM.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Try using
    Please Login or Register  to view this content.

+ 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. auto save to a file via macro or program?
    By stevesunfold in forum Excel Programming / VBA / Macros
    Replies: 127
    Last Post: 05-03-2008, 06:49 PM
  2. during save macro disappears
    By ChocolateBob in forum Excel General
    Replies: 3
    Last Post: 09-25-2007, 01:10 PM
  3. Save Macro Problem (Digital Signature)
    By JPH-PCCoor in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-29-2007, 11:16 AM
  4. Save values on specific worksheet
    By accessman2 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-30-2007, 10:29 AM
  5. Macro to create new worksheet
    By ChrisMattock in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-30-2007, 05:18 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