+ Reply to Thread
Results 1 to 4 of 4

Rename cell according to a particular word in file name

  1. #1
    Forum Contributor
    Join Date
    08-25-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    125

    Rename cell according to a particular word in file name

    Hi All

    I have a spreadsheet called - # 3456 INVOICE Mr Brown
    In Cell G1 I have the word "INVOICE".
    If I 'save as' - # 3456 DELIVERY NOTE Mr Brown - I need the cell G1 to automatically display the word "DELIVERY NOTE".

    Is this possible ??

    If so please advise on how to do that.

    Thanks

    Russel

  2. #2
    Forum Contributor
    Join Date
    10-18-2012
    Location
    Telford, England
    MS-Off Ver
    Excel 2010 (2003)
    Posts
    294

    Re: Rename cell according to a particular word in file name

    Of course the values given are examples. So to generalise: if the filename at open contains DELIVERY NOTE at save, place that phrase in cell G1.
    This assumes (seems reasonable but but lazy) that the first condition applies (INVOICE in name before).
    Plase this macro in the ThisWorkbook document module.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-25-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    125

    Re: Rename cell according to a particular word in file name

    Hi Brynbaker

    Thanks for the response.
    Im not really sure what you mean. I tried to follow your instructions , but it didnt work .
    Im sure it does , but I cant seem to get it right.
    If you dont mind please help me with your explaination.

    Regards

    Onesock

  4. #4
    Forum Contributor
    Join Date
    10-18-2012
    Location
    Telford, England
    MS-Off Ver
    Excel 2010 (2003)
    Posts
    294

    Re: Rename cell according to a particular word in file name

    Indeed you are correct; it does not ask the save name until after the event has fired. Ho hum.
    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)

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