+ Reply to Thread
Results 1 to 3 of 3

Copying Charts from Closed Workbooks

  1. #1
    Forum Contributor
    Join Date
    01-23-2010
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    226

    Copying Charts from Closed Workbooks

    Hello, I’m creating some code to copy a number of charts from a closed workbook which are required to be pasted into specific locations within the open workbook (carrying the code). I’m getting a compile error (Expected function or variable) on the first occurence of;

    Please Login or Register  to view this content.
    There are several workbooks that I need to perform this operation for but my code in its early stages and only refers to one external workbook.

    Please would someone guide me on where the current code is failing and recommendations for the next stage?

    Thank you,

    Jess

    Please Login or Register  to view this content.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: Copying Charts from Closed Workbooks

    Untested, but try:
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    01-23-2010
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    226

    Re: Copying Charts from Closed Workbooks

    Thank you, that has nicely removed the compile error. Now the macro is running, I’m getting a run time error 5 (Invalid procedure call or argument) on line;

    Please Login or Register  to view this content.
    Do you know what the solution to this is please?

+ 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] Excel Macro for searching and copying closed workbooks
    By gedingen_35 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-17-2018, 07:36 PM
  2. [SOLVED] Copying values from a folder full of closed workbooks
    By Simsam_g in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-31-2015, 09:20 PM
  3. Copying specific data ranges from multiple (closed or in use by others) workbooks
    By TheRetroChief in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-19-2014, 10:39 AM
  4. Copying rows from multiple closed workbooks to active workbook
    By onbeillp111 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2013, 11:19 AM
  5. VBA: Copying data from closed workbooks
    By staffordalex in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2008, 01:20 PM
  6. Copying data from closed Workbooks
    By danman1043 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-03-2008, 09:11 AM
  7. Copying ranges of cells from closed workbooks?
    By JHongTurney in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2005, 03:30 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