+ Reply to Thread
Results 1 to 2 of 2

Need help on save file name as from cell

  1. #1
    Registered User
    Join Date
    11-14-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    28

    Need help on save file name as from cell

    Hello All !

    Needs some help to solve my problem. need to know how click a button to automatically combine a few cell data and save it as the file name ?

    The file name i want to save, is in this method.

    ( Date 2013-07-22 ) + ( Cheque No UOB000000 ) + ( ReceiverName ) + ( InvoiceNo L123456 ) + ( Payment Voucher Code ) + ( Amounts $1111111 )
    ______V5___________________E17___________________D11________________O9______________Add word ( PV )_____________W16

    Sample File name : 2013-07-22_UOB000000_TransAuto_Inv778899_PV_$$$$$$$


    I tried to add this code : FName = ActiveWorkbook.Sheets("Payment Voucher").Range =("V5&"_"&E17&"_"&D11&"-"&O9&"_"&"PV"&"_"&W16")

    But getting error.


    Than i tried to group all the cell data into cell (E11) and than select as range (E11), but when i tried to group it, the beginning the file name instead of i want it to be the date 2013-07-22_UOB........ it become 41113_UOB............



    Can anyone help to solve my little problem ?

    Thanks !

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Use this formula, on the worksheet, to get the date in the right format.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

+ 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. [SOLVED] macro to save file to specific folder with file name from cell reference
    By mezza89 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-06-2013, 11:32 AM
  2. Automatically save file with cell value + copy cell values to other workbook
    By notquitetheguru in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-10-2013, 07:04 AM
  3. Macro to save a file with a pre file name + week number from a cell
    By The.Dutchmaster in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-06-2012, 03:54 PM
  4. How to click "SAVE" to save a new file with file name derived from a cell?
    By vettenfun in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 09-29-2011, 12:21 PM
  5. Save rows as text file & name file from a cell
    By nebraska in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-01-2011, 05:39 PM

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