+ Reply to Thread
Results 1 to 2 of 2

Question about Error Handling + multiple msg boxes

  1. #1
    Registered User
    Join Date
    05-31-2020
    Location
    Tokyo
    MS-Off Ver
    Microsoft Office 365
    Posts
    11

    Question about Error Handling + multiple msg boxes

    I have a simple function here that performs a calculation on a range of values. The range will always have 5 values. The range should also be one dimensional.
    In an attempt to cover an out of range case, I have tried to add error handling that will prompt the user of the functions limitation.

    When I test a range with an x value >1 from a subroutine, I only get the error msg once. However, when I attempt the same range of cells from a worksheet, I get the error msg many times.

    I don't understand why I would get different results from a worksheet vs. a subroutine.

    Any help is greatly appreciated.


    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Question about Error Handling + multiple msg boxes

    When you pass the values from a range to an array you get a 2-dimensional array.
    If posting code please use code tags, see here.

+ 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. error handling question
    By david90 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-17-2012, 06:23 PM
  2. Error Handling Question
    By BradC in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-07-2007, 01:30 PM
  3. Error Handling Question
    By DCSwearingen in forum Excel General
    Replies: 4
    Last Post: 11-30-2006, 10:19 AM
  4. Error handling question
    By sungen99 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2006, 12:38 PM
  5. Look up error handling question.
    By sungen99 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-12-2006, 11:23 AM
  6. [SOLVED] Error Handling question
    By BigPig in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-19-2006, 04:10 PM
  7. question error handling
    By Pierre via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2005, 05:45 PM

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