+ Reply to Thread
Results 1 to 6 of 6

Merge Highlighted Cells to create file name for Scanned File

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Merge Highlighted Cells to create file name for Scanned File

    Hello:

    I am trying to make all my filing paperless.
    Hence i scan all the documents, invoices, bills, correspondence, etc for all my businesses.
    I need to name the scanned files accordingly and hence i need the following:



    I have a situation where i like to build a file name as follows..( i need to use this for renaming scanned files).

    Column A would have Dates of current month and Today's date would need to be higlighted as default.
    Column B would have Customer
    Column C would have Category


    Depending on what I scanned, i would highlight the date, Customer and Category.
    (OR If possible you could help me create dropdown list to select Date, Customer and Category)

    Running a macro need to create :

    Date_CustomerName_Category in Field D2
    Please refer to attached sheet for referance.


    Would need Clear Button to unhighlight cells for next run.
    Next File name would need to be in D3 and thenD4,D5, etc..


    Thank you in advance for your help and please let me know if you have any questions.


    RM
    Attached Files Attached Files
    Last edited by rizmomin; 12-01-2010 at 12:28 PM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,526

    Data Validation Macro

    This example will automate your data validation so you can continue to add items to the list. When you click the button the lists update.

    You can hide Columns A:C if you don't want to see them by selecting Columns A:C then hit Ctrl & 0(zero) select the entire sheet and hit Ctrl & shift & 0 to unhide.

    There are two Modules that have code to make this work, Module1 and the worksheet1 module.
    Right click on the sheet tab and select View Code, or hit Alt & F11 either way you will get to the VBA Editor and will be able to see the modules.
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Merge Highlighted Cells to create file name for Scanned File

    Hi Dave:

    Thank you so much ...this will work great for me.
    However i would like to have date format in the name as yyyy-mm-dd eg: 2010-11-30-AA_BB. Also once this File name is created i wanted to manually rename the scanned file to this as new name of the file. To do that i would need to scroll my cursor along the created file name and copy and paste to rename. Is there an easy way to select the content of cell (Complete File Name).....

    PLEASE let me know if you have any questions in understanding my requirement.

    Once again thank you so much for all your past help also..
    Life becomes very easy when we have people like you on this forum....so helpful

    RM

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Merge Highlighted Cells to create file name for Scanned File

    Hi David:

    I think i found a way to select the content of the file name by doing F2 and then Shift+Home..
    This will highlight the content and i can do copy an paste.

    Howerver, i still need the created file name in following format : yyyy-mm-dd_Customer_Category.
    Please help accomplish this.

    Thank U

    RM
    Last edited by rizmomin; 11-30-2010 at 11:58 AM.

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,526

    Re: Merge Highlighted Cells to create file name for Scanned File

    In the worksheet module, replace with this
    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Merge Highlighted Cells to create file name for Scanned File

    Hi Dave:

    Super this will work great...

    Thank U so much for your expertize...

    RM

+ 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