+ Reply to Thread
Results 1 to 2 of 2

Integer defined array vs variant defined array ..error making assignment to integer

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Integer defined array vs variant defined array ..error making assignment to integer

    I have the following code........for some reason i can not assign the range A1 to A26 to the integer defined array but i can for the variant defined array...........why?


    Please Login or Register  to view this content.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Integer defined array vs variant defined array ..error making assignment to integ

    Because the data stored in worksheet cells is data type Variant, which you cannot coerce en masse to any stronger data type (Integer, Long, Double, Boolean, ...).
    Last edited by shg; 10-07-2011 at 01:54 PM.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

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