Consulting

Results 1 to 3 of 3

Thread: Find Desktop Folder Files

  1. #1
    VBAX Contributor
    Joined
    Aug 2007
    Posts
    188
    Location

    Find Desktop Folder Files

    Hi All

    I have lots of Excel invoice files in a desktop folder the path to the folder is
    C:\Documents and Settings\Sooty8\Desktop\Invoices 2009
    I have created a small UserForm with a textbox and a commandbutton
    entering the invoice file number in the textbox say C204 then clicking the commandbutton how would I code it to find the file for me in the folder and highlight it so that I could then attach it to an Email and send it off to the client.

    Many Thanks for any help.

    Sooty8

  2. #2
    VBAX Contributor
    Joined
    Aug 2007
    Posts
    188
    Location
    Hi

    The files all are named - Invoice then the number -- Invoice 204

    Sorry about missing that

    Thanks

    Sooty8

  3. #3
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Can you post a workbook containing your Userform.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •