+ Reply to Thread
Results 1 to 2 of 2

how do u use a cell value for the save to filename

  1. #1
    Guest

    how do u use a cell value for the save to filename

    I need to save timesheets as their week ending date, can i do this
    automaticaly with a macro and control???
    TIA
    --
    ----------------------------------------------
    Posted with NewsLeecher v3.0 Final
    * Binary Usenet Leeching Made Easy
    * http://www.newsleecher.com/?usenet
    ----------------------------------------------

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Mark,

    Yes you can do this. Here is macro to rename the Active Worksheet to whatever the Active Cell contains. Add A VBA module to your Workbook and copy the macro code into it. Select the cell that contains the date, and then select the macro from the Macro List (press the ALT key and then press F8 to bring it up) and run it without using a control.

    Macro Code:

    Sub RenameSheet()
    ActiveSheet.Name = ActiveCell.Value
    End Sub

    Sincerely,
    Leith Ross
    Last edited by Leith Ross; 01-19-2006 at 03:46 PM.

+ 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