+ Reply to Thread
Results 1 to 5 of 5

Issue with a selection into an array.

  1. #1
    Forum Contributor
    Join Date
    05-30-2013
    Location
    Isreal
    MS-Off Ver
    Excel 2010
    Posts
    191

    Issue with a selection into an array.

    I am inputting from a spreadsheet a selection into an array.
    If the selection has more then one argument everything seems to work fine.
    However if the selection has only one item in the array it seems not to work correctly.
    And we receive the following error type mismatch
    how can we make it work if there is only one item in the array.

    Please Login or Register  to view this content.
    Thank you
    Here is the code we are using:

  2. #2
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Issue with a selection into an array.

    It looks like you are assigning the upperbound to be the 2nd value in the array (UBound(Sku_Arr, 2)) but if the cell only has one value this isn't going to work.

  3. #3
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Issue with a selection into an array.

    maybe something like this
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    05-30-2013
    Location
    Isreal
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Issue with a selection into an array.

    I’m not sure why I am doing so but seems to work.
    Is there anyway I can check if the anyway has only one value in that case I will be able to make a if statement

  5. #5
    Forum Contributor
    Join Date
    05-30-2013
    Location
    Isreal
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Issue with a selection into an array.

    I found the solution.
    I needed to format the HTML in the range which is stored on the Excel sheet.
    In my case since I did not know HTML I used Kompozer

    Thank you for your help.

+ 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. Replies: 3
    Last Post: 07-31-2013, 11:53 AM
  2. Excel 2007 : Excel Selection issue
    By anyjburnett in forum Excel General
    Replies: 3
    Last Post: 04-26-2012, 11:19 AM
  3. [SOLVED] Selection.formula = issue
    By Grilleman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-19-2012, 08:34 PM
  4. Cell selection issue
    By MsfStl in forum Excel General
    Replies: 6
    Last Post: 09-02-2008, 03:16 PM
  5. Selection to Array and Array to Sheet
    By qpg in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-14-2006, 01:00 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