+ Reply to Thread
Results 1 to 2 of 2

Call a specific workbook from a file location and move worksheet to different workbook

  1. #1
    Forum Contributor
    Join Date
    05-13-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    378

    Call a specific workbook from a file location and move worksheet to different workbook

    I have moved worksheets from a workbook to a specified file path but I have not run a code that would go to a specified path, find the workbook defined and then copy a specific worksheet to a different workbook and then close the first workbook.

    Ex.
    I have a workbook named Raw Data and the worksheet is named Time Report. I want to go to the location where this file is saved, open the workbook, copy the Time Report worksheet and paste into my other workbook named Report. Then close the Raw Data Workbook.

    How can I perform this action?

    Thanks!!!!!

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Call a specific workbook from a file location and move worksheet to different workbook

    Hi, dwhite30518,

    did you try recording a macro woith the macro recorder for this action? It should at least give you a direction of code to use. Some sniplets that may come in handy for working on the code (this is not a working sample but just code lines that may help!):
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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. [SOLVED] Input an Import file Datelastmodified info into specific location in destination workbook
    By Ian99 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2013, 04:19 PM
  2. Syntax to call a specific workbook and specific worksheet using VBA?
    By 111StepsAhead in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-21-2013, 05:32 PM
  3. Replies: 3
    Last Post: 08-28-2012, 09:56 AM
  4. Replies: 2
    Last Post: 10-02-2007, 11:41 PM
  5. Replies: 1
    Last Post: 03-16-2006, 03:00 PM

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