+ Reply to Thread
Results 1 to 4 of 4

Macro code for moving between files

  1. #1
    Registered User
    Join Date
    06-18-2013
    Location
    Calgary, Canada
    MS-Off Ver
    Excel 2010
    Posts
    17

    Macro code for moving between files

    I am trying to run a macro that will open a file from a folder and manipulate the file in various ways. Once complete it will do the same with the next file in the folder, etc. The manipulation includes copying from a source workbook that is already open (Dept macro 2014 Testing.xlsm in my example). The macro should copy data as well as an entire sheet from the source workbook.

    I am challenged with the code to use for the workbook(s) opened when moving from window to window (source workbook to workbook opened from list). I am ok with the source workbook as I just use that workbooks name. I can't figure out out to reference the opened workbook(s).

    Please Login or Register  to view this content.
    I have made the line of the code where I need help with blue.


    Thanks

  2. #2
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Macro code for moving between files

    Please Login or Register  to view this content.
    Is this Okie?
    -If the problem is solved, please mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved".

    -Always upload a workbook before start your question
    To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    +++ If my answer(s) helped you, please add me reputation by click on * +++

  3. #3
    Registered User
    Join Date
    06-18-2013
    Location
    Calgary, Canada
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Macro code for moving between files

    Thanks wenqq3
    I have yet to try it.
    Started on another way to solve my issue and just working through those steps.
    I will still try it though as I may apply this concept for other steps in my process.

  4. #4
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Macro code for moving between files

    Okie, if you found the solution. Please share here, so other might have the same problem as you :D

+ 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