+ Reply to Thread
Results 1 to 3 of 3

Cant get wild card ...*... to work in Excel VBA .

  1. #1
    Registered User
    Join Date
    04-11-2013
    Location
    Las Vegas
    MS-Off Ver
    Excel 2007
    Posts
    26

    Cant get wild card ...*... to work in Excel VBA .

    I have a spreadsheet name that varies the number in paranthasis, but the rest of the name is the same.

    Thus, Bank Transaction Reconciliation will always be the same, however the number will change as new files are accessed by the macro. Thus, i need the macro to use a wild card inside the parenthasis to pull up different files.

    Here is examples of how the files will vary....

    Bank Transaction Reconciliation (28).xls
    Bank Transaction Reconciliation (29) .xls
    Bank Transaction Reconciliation (40) .xls ....so only a very small part of the file name will vary and this small piece needs to be a wild card. But i can't get the following

    code to work.........

    Windows("Bank Transaction Reconciliation (& " * " &) .xls").Activate.............can you help me? thank.s

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Cant get wild card ...*... to work in Excel VBA .

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    04-11-2013
    Location
    Las Vegas
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Cant get wild card ...*... to work in Excel VBA .

    Thank you very much....the code you provided worked like a charm.

+ 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. wild card
    By jamrock in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-05-2013, 05:47 PM
  2. Wild Card Character search using Excel VBA
    By s.anurag1786 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2013, 11:18 PM
  3. [SOLVED] Excel Replace Function with wild card: Possible?
    By alfykunable in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-27-2011, 12:59 AM
  4. Wild card in Excel SQL
    By tkuia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-10-2010, 06:36 AM
  5. Wild card *
    By Herman in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-21-2005, 09:05 AM

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