+ Reply to Thread
Results 1 to 3 of 3

MsgBox-write vba to pick up

  1. #1
    Registered User
    Join Date
    03-06-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    4

    MsgBox-write vba to pick up

    hi all, I have this excel worksheet 2007 and wish to have msgbox popup if there is a value entered.
    example, in column A theres text "CASH" or "STOCK" or "#N/A", so in column B and C needs to put in value, so if its "CASH" value must be entered in column B and for "STOCK" value must be entered in column C.
    I want to be able to write vba to pick up that if its text in column A says "CASH" and I enter a value in column C instead of B then msgbox error should pop up warning me thats its in the wrong column.
    can someone please help???
    thank you sooo much!

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: msgbox excel 2007 help please!

    Hi,

    Have you considered using data validation for this? It has some shortfalls but it will be much more straightforward for you to implement than VBA.
    Hope that helps,

    Colin

    RAD Excel Blog

  3. #3
    Registered User
    Join Date
    03-06-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: msgbox excel 2007 help please!

    Quote Originally Posted by Colin Legg View Post
    Hi,

    Have you considered using data validation for this? It has some shortfalls but it will be much more straightforward for you to implement than VBA.

    Hi Colin, I'm sorry I'm new to this, what's data validation? any suggestion would be helpful =)

+ 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