+ Reply to Thread
Results 1 to 5 of 5

Pop-up msg box action

  1. #1
    Registered User
    Join Date
    12-22-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    1

    Pop-up msg box action

    Hi,

    I have have written some VBA code and attached it to a text box saying PRINT.

    When the button is pressed a pop-up should come up saying Warning! Have you created a unique reference. This then has yes and no buttons. If the user clicks yes the sheet should print, if the user clicks no, the cell "I3" should be selected and highlighted yellow. I have got the code to work but it also turns the cell that was previously selected yellow, any help?

    This is what I have so far:
    Please Login or Register  to view this content.
    Thanks
    Last edited by royUK; 12-22-2009 at 07:20 AM.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Pop-up msg box action

    Try something like this:

    Please Login or Register  to view this content.
    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Pop-up msg box action

    Your code to turn the cell yellow is not in the If statement so you could try this version:
    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

  4. #4
    Forum Contributor
    Join Date
    07-24-2009
    Location
    Valrico, FL USA
    MS-Off Ver
    Excel 2016
    Posts
    358

    Re: Pop-up msg box action

    Edit your post to comply with rule #3 in the forum rules.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Pop-up msg box action

    As ncmay says your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

    Edited this time only
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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