Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Save

  1. #1
    New Member
    Join Date
    Feb 2002
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Is there a procedure to use a cell content as a filename?
    eg cell d3 contains 'Kevin' which I'd like saved as an automated filename = kevin.xls

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Sydney, Australia
    Posts
    2,940
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi,

    Here are two examples:-

    'Save it in current folder
    ActiveWorkbook.SaveAs Sheets("Sheet1").Range("D3").Value

    'or save it in a stated folder
    ActiveWorkbook.SaveAs "C:temp" & Sheets("Sheet1").Range("D3").Value

    HTH,
    D

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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