+ Reply to Thread
Results 1 to 2 of 2

Adding wildcards to Workbook.open filenames

  1. #1
    Registered User
    Join Date
    12-16-2007
    Location
    Ohio
    Posts
    3

    Adding wildcards to Workbook.open filenames

    Hi -
    I've got my project working now with help I've been able to gleen from the forums. Its been very helpful. I do have one problem that will come up in the future and I'd like to take care of it now. So here goes -

    I'm copying worksheets from one workbook into a newly created workbook. My problem will be that the CopyFromWorkbook's filename will change when it is revised because the revision number is in the filename. In DOS days I would have used "??" to wildcard the revision number. Is there a way to create a filename that would do the same thing?? I'm currently building the filename string and using that with workbooks.open, but I can "hardcode" it in if necessary.

    Thanks for the help!!

    Mark

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Mark

    It isn't possible to use wildcards with Workbooks.Open.

    You can however use them with the Dir command.
    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