+ Reply to Thread
Results 1 to 3 of 3

Why doesn't Application.Index write array column to worksheet range?

  1. #1
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Angry Why doesn't Application.Index write array column to worksheet range?

    I am trying to use Application.Index to write a specific column of a 2D array to a worksheet.

    See extract of code below. Everything runs fine until it reaches the .Cells line and then it goes to the error handler. Why?
    Please Login or Register  to view this content.
    *******************************************************

    HELP WANTED! (Links to Forum threads)
    Trying to create reusable code for Custom Events at Workbook (not Application) level

    *******************************************************

  2. #2
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Why doesn't Application.Index write array column to worksheet range?

    Arrgh. I commented out the On Error and now VBA calmly processes the .Cells line.... except it doesn't write any values to the worksheet??? (My array is 5 rows by 7 columns. No base 0 option).

  3. #3
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Why doesn't Application.Index write array column to worksheet range?

    Solved. (It's always the little things). (I should have had the worksheets as
    Please Login or Register  to view this content.
    )

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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