+ Reply to Thread
Results 1 to 6 of 6

Copy from another workbook

  1. #1
    Registered User
    Join Date
    04-23-2017
    Location
    Poland
    MS-Off Ver
    2016
    Posts
    4

    Copy from another workbook

    Hi,

    I get a new excel file every day that i need to work on. The thing is i cannot modify is in any way/save it in another location (do not ask....) . What i can do is copy the data to another excel file and then save it so i did something like this:

    Please Login or Register  to view this content.
    It works fine untill the last line (Pasting) which i don't really know why is not working. It spits out Subscription out of date but how is that possible? How can "A1" be out of range?!

    Thanks in advance for your help!
    Last edited by Arsen258; 04-23-2017 at 03:58 AM.

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Copy from another workbook

    Try removing the line in red. You already set the wb at the top of your code.
    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Copy from another workbook

    Please Login or Register  to view this content.
    Paste method applies to Sheet object.

  4. #4
    Registered User
    Join Date
    04-23-2017
    Location
    Poland
    MS-Off Ver
    2016
    Posts
    4

    Re: Copy from another workbook

    Quote Originally Posted by mike7952 View Post
    Try removing the line in red. You already set the wb at the top of your code.
    It got me: Object doesn't support this property or method

  5. #5
    Registered User
    Join Date
    04-23-2017
    Location
    Poland
    MS-Off Ver
    2016
    Posts
    4

    Re: Copy from another workbook

    Quote Originally Posted by jindon View Post
    Please Login or Register  to view this content.
    Paste method applies to Sheet object.
    Works great! Thank you!

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Copy from another workbook

    You are welcome and thanks for the rep.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. Assign name to Workbook, Copy range from one workbook to another workbook
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-18-2015, 03:40 AM
  2. Replies: 12
    Last Post: 07-29-2014, 01:06 PM
  3. Copy data one workbook to another workbook without opening workbook
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2014, 11:28 AM
  4. [SOLVED] Copy Values From Each Workbook in Folder to a Single Sheet in New Workbook +Workbook names
    By Arsham24 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-21-2012, 07:42 PM
  5. [SOLVED] copy active sheet, create new workbook, name new workbook based on cell reference
    By jm0392 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-20-2012, 07:12 PM
  6. Replies: 1
    Last Post: 04-01-2006, 03:50 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