+ Reply to Thread
Results 1 to 8 of 8

Warning / Error alert

  1. #1
    Registered User
    Join Date
    10-11-2009
    Location
    london, englans
    MS-Off Ver
    Excel 2003
    Posts
    30

    Exclamation Warning / Error alert

    Hi all,

    Wondering if you can help....

    I want to use VBA code so that if cells within a column for instance, column I, is selected it warns the user 'Check you have used the correct column'.

    Thanks for your help!!!
    Last edited by deanJ; 10-24-2009 at 09:44 PM. Reason: Closed

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: Warning / Error alert

    Good afternoon deanJ
    Quote Originally Posted by deanJ View Post
    I want to use VBA code so that if cells within a column for instance, column I, is selected it warns the user 'Check you have used the correct column'.
    Your post's a bit unclear. If someone selects any row in column l (that's L) you want a warning flashed up - is that correct?

    If so use this code :
    Please Login or Register  to view this content.
    Right click your sheet tab and select View Code.
    Then copy the code above into the window that opens.
    Go to File > Close and Return to Microsoft Excel.

    HTH

    DominicB
    Last edited by dominicb; 10-21-2009 at 08:37 AM.
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Registered User
    Join Date
    10-11-2009
    Location
    london, englans
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Warning / Error alert

    Thanks mate, that is exactly what I wanted!!!

    Thanks for all your help!!!

  4. #4
    Registered User
    Join Date
    10-11-2009
    Location
    london, englans
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Warning / Error alert

    Quote Originally Posted by dominicb View Post
    Good afternoon deanJ

    Your post's a bit unclear. If someone selects any row in column l (that's L) you want a warning flashed up - is that correct?

    If so use this code :
    Please Login or Register  to view this content.
    Right click your sheet tab and select View Code.
    Then copy the code above into the window that opens.
    Go to File > Close and Return to Microsoft Excel.

    HTH

    DominicB
    What about if you want to select column 4 and 5 to have the warning pop up?

  5. #5
    Registered User
    Join Date
    06-30-2009
    Location
    Southern California, Earth
    MS-Off Ver
    Excel 2010
    Posts
    72

    Re: Warning / Error alert

    Hi. You would simply add the additional conditions.

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    06-30-2009
    Location
    Southern California, Earth
    MS-Off Ver
    Excel 2010
    Posts
    72

    Re: Warning / Error alert

    Or you can shorten it up a little bit:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    10-11-2009
    Location
    london, englans
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Warning / Error alert

    Thanks for all your help. You have all been great!

  8. #8
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: Warning / Error alert

    Hello folks,

    I was thinking of how else this could be written, Withough the use of mutit IF's, Loops & Or.

    I though an array though couldnt see how to do it within these constraints, I came accross a missues of the Scripting.dictionary.

    Does anyone know of any other ways that this could be coded.
    Please Login or Register  to view this content.
    DeanJ sorry about putting somethink like this in your thread. (I wouldnt use this code bud).

+ 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