+ Reply to Thread
Results 1 to 3 of 3

If formula then else Msgbox won't work

  1. #1
    Forum Contributor
    Join Date
    06-06-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    180

    If formula then else Msgbox won't work

    Hi all,

    I am trying to write some code to refer to a value in textbox (txtlookup) find in on sheet 7 range B:B and return the values of that row into all the textboxes in the userform (Reg0 to Reg10). The first part of the code works put when If i type in a code intro txtlookup which does not exsist I get error 91. I thought if it didn't exsist ot would go to MsgBox "The code you have entered does not exsist"? Any ideas anyone?

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: If formula then else Msgbox won't work

    Use On Error go to somewhere approach

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    06-06-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    180

    Re: If formula then else Msgbox won't work

    Thanks zbor super!

+ 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] Problem with VBA Editor uses lower case on some lines (ex. msgbox instead of MsgBox)
    By stubbsj in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-14-2013, 06:59 PM
  2. [SOLVED] Simple MSGBOX which can work with any existing code
    By omega0010 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-23-2013, 05:18 AM
  3. [SOLVED] Getting yes & no buttons to work in MsgBox
    By shiftyspina in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-02-2013, 03:04 PM
  4. Multiple Checkbox Change w/ VBA Won't work w/ out msgbox
    By wilodom in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2011, 09:49 AM
  5. [SOLVED] work behind msgbox
    By Nazrul in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-07-2005, 03:05 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