Results 1 to 17 of 17

Necessary to open up one workbook in order to copy information to another workbook?

Threaded View

  1. #1
    Forum Contributor
    Join Date
    10-04-2010
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    469

    Necessary to open up one workbook in order to copy information to another workbook?

    Hi all,

    Just curious if it's at all necessary to physically open a spreadsheet in order to copy information to another workbook? Could one not possibly just list the range and file path you want copied?

    Currently my code is having to open a file, select contents and then paste into another workbook on a specific tab and then close that file. I'd preferably not want the user to see the file physically opening in the toolbar and then closing if even just for the slightest fraction of a second.

    Workbooks.Open Filename:="\\server\shared\Project Zeus\Report X.xls"
        Range("A1:X65536").Copy
        Workbooks("Reporting model - GM").Sheets(5).Cells(1, 1).PasteSpecial Paste:=xlPasteValues
     Windows("Report X.xls").Close
    Last edited by Gti182; 11-19-2010 at 11:07 AM.

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