+ Reply to Thread
Results 1 to 4 of 4

Copy paste array from one worksheet to another

  1. #1
    Registered User
    Join Date
    09-29-2017
    Location
    London
    MS-Off Ver
    2010
    Posts
    40

    Copy paste array from one worksheet to another

    Hi!

    I am trying to do a very basic thing on VBA but getting bugs after bugs.

    I want to copy paste the values only from an array from one worksheet to another but am struggling with the syntax. My code is as follows but I am getting a bug "Object doesn't support Property or Method" on the row with the Paste function

    Please Login or Register  to view this content.
    Thank you in advance,

    Xenthys

  2. #2
    Registered User
    Join Date
    09-29-2017
    Location
    London
    MS-Off Ver
    2010
    Posts
    40

    Re: Copy paste array from one worksheet to another

    My bad, you have to select the first cell of the target array and then paste: it seems to work with the code below

    Please Login or Register  to view this content.

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Copy paste array from one worksheet to another

    You could simplify to:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Registered User
    Join Date
    09-29-2017
    Location
    London
    MS-Off Ver
    2010
    Posts
    40

    Re: Copy paste array from one worksheet to another

    Yes, indeed, much more elegant

    Thank 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. Copy from Array in ActiveWorkbook to ThisWorkbook; Transpose copy, Offset Paste
    By sbradley in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-14-2013, 05:17 PM
  2. [SOLVED] Copy data from a worksheet and paste to worksheet with a similar worksheet name
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-21-2012, 04:02 AM
  3. Copy data from a worksheet and paste to worksheet with a similar worksheet name
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-21-2012, 02:49 AM
  4. how to paste an array of formulas into worksheet via VB
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-29-2010, 08:40 AM
  5. Array - Copy Formula, Paste as Array
    By lilanngel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2010, 08:20 AM
  6. Copy and Paste Array value
    By Rashed.R in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-10-2010, 04:26 AM
  7. [SOLVED] Paste Array into worksheet
    By Kaval in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-11-2005, 05:05 AM
  8. [SOLVED] select variables ranges, copy to array, paste the array in new workbook
    By Mathew in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-01-2005, 05:06 AM

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