+ Reply to Thread
Results 1 to 5 of 5

Transferring a range to a variant array

  1. #1
    Registered User
    Join Date
    07-03-2019
    Location
    Managua, Nicaragua
    MS-Off Ver
    2016
    Posts
    1

    Question Transferring a range to a variant array

    Can someone explain me why the error 13 is occurring. It is something with the line: x(r, c) = x(r, c) * 2

    Please Login or Register  to view this content.
    I appreciate your help!
    Last edited by jeffreybrown; 07-03-2019 at 06:07 PM. Reason: Please use code tags!

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Transferring a range to a variant array

    The workbook would be a big help, along with some notes as to what you're trying to do.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Transferring a range to a variant array

    I'd guess you have something in that range that is not numeric - e.g. headers in row 1, or error values.
    Rory

  4. #4
    Valued Forum Contributor
    Join Date
    06-27-2010
    Location
    sYRIA
    MS-Off Ver
    Excel 2013
    Posts
    669

    Re: Transferring a range to a variant array

    Hi
    you may run this code as test to find out where is the problem mentioned in #2 & #3
    the x's the the range/s would be hazy

    Please Login or Register  to view this content.

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: Transferring a range to a variant array

    crossposted: https://www.excelguru.ca/forums/show...-variant-array

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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] updating variant array with new range
    By Neuk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2018, 08:55 AM
  2. [SOLVED] A variable defined as variant or variant array
    By billj in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-14-2016, 05:35 PM
  3. Does setting a variant acting as an array equal to "" accomplish same as "Erase" variant?
    By dmasters4919 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2014, 05:59 PM
  4. [SOLVED] Transferring an array to a range without selecting target worksheet
    By zebby in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-09-2014, 03:16 PM
  5. transferring array to range
    By JackRnl in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-07-2006, 08:15 PM
  6. Array problem: Key words-Variant Array, single-element, type mismatch error
    By davidm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2005, 12:30 AM
  7. Transferring part of a multi-dimensional array to a range in VBA
    By Bob J. in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2005, 11:05 AM

Tags for this Thread

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