+ Reply to Thread
Results 1 to 2 of 2

naming .xls file based on a cell in excel

  1. #1
    Registered User
    Join Date
    09-13-2004
    Posts
    26

    naming .xls file based on a cell in excel

    when i hit save as, i would like excel to refer to a certain cell on my spreadsheet to name the spreadsheet file. is there a way to do this?

  2. #2
    Forum Contributor
    Join Date
    02-26-2005
    Posts
    175
    Quote Originally Posted by lsu-i-like
    when i hit save as, i would like excel to refer to a certain cell on my spreadsheet to name the spreadsheet file. is there a way to do this?
    Isu,
    With a macro,
    Something like;
    Asumimg cell you want to use is B2.
    Subsitute your path to where you want the file to be saved.

    Sub SaveAsFileName()
    ActiveWorkbook.SaveAs Filename:="C:\Documents and Settings\Owner\Desktop\" & Range("B2").Value & ".xls"
    End Sub

    Dave

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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