+ Reply to Thread
Results 1 to 4 of 4

Copy Data between two workbooks (Wildcard windows().Activate)

  1. #1
    Registered User
    Join Date
    05-12-2010
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    3

    Copy Data between two workbooks (Wildcard windows().Activate)

    I've seen it discussed in a couple threads how it is possible to copy data between two workbooks (open or closed). In my case I am trying to create a macro that copies data from one open window called *month_todate*.xls to another open window called *affiliate*.xls.

    When I tried copying this data from one open workbook to the other, the windows().activate command would not allow wildcards. How can I make sure that I can apply this to many workbooks one at a time that either have affiliate in the title or month_todate in the title?

    Here is the code I currently have that works when I change the wildcard names to the actual file names:

    Please Login or Register  to view this content.

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Copy Data between two workbooks (Wildcard windows().Activate)

    This will do:
    Please Login or Register  to view this content.
    Avoid using Select, activate in VBA code (it's unneccessary)
    Last edited by snb; 05-12-2010 at 10:29 AM.

  3. #3
    Registered User
    Join Date
    05-12-2010
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Copy Data between two workbooks (Wildcard windows().Activate)

    I'm not quite sure I understand how this code works and what I am replacing it with?

  4. #4
    Registered User
    Join Date
    05-12-2010
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Copy Data between two workbooks (Wildcard windows().Activate)

    Does anyone know how I can make these changes so I can apply it across multiple workbooks?

+ 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