+ Reply to Thread
Results 1 to 11 of 11

Display box

  1. #1
    Forum Contributor
    Join Date
    01-26-2010
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    162

    Smile Display box

    Hi,

    I would like to display a pop up box if value in column C is NO. Here is the explanation:

    Column C2 formula is: =IF(A2="","",IF(OR(SUBSTITUTE(H2,CHAR(160),"")="CITY",B2="YES"),"YES","NO"))

    In Column A is where I insert a postcode. As soon as the postcode e.g cell A2 then cells
    C2,E2, F2, G2, H2 and I2 is displaying the address.

    As soon as I inserted the postcode in cell A2 I would like:

    1) If value in cell C2 = "No" pop up a message box sayin " The candidate is not eligible to apply unless they have got special abilities. Please ask candidate!!!! " and on the box have to choices one "Yes" and "No". If user select "Yes" then enter "Yes" in cell B2 and and jump to D2 so additional info can be entered manually. If user select "NO" in the pop up box then insert "No" in cell B2 , cut row 2 and paste it in Not eligible tab.from A2:I2. If next not eligible candidate paste it to A3:I3 etc.


    2) If value in cell C2= "Yes" don't display pop up box and just move directly to cell D2.


    I have attached a copy of my spreadsheet.


    Many thanks in advance

    greekboyuk
    Attached Files Attached Files
    Last edited by greekboyuk; 05-23-2010 at 06:58 AM.

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

    Re: Message Box super challenge!!!

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    01-26-2010
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    162

    Re: Display box!!Need help!!

    Hello royuk. is this a suitable title? if not please let me know?

    Many thanks

    greekboyuk

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Display box!!Need help!!

    Your sample is 330kb zipped, obvious too large to be considered a sample.
    Why not make it smaller so somebody would be glad to open it and help you.

  5. #5
    Forum Contributor
    Join Date
    01-26-2010
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    162

    Re: Display box!!Need help!!

    hello davesexcel,

    My data is very small and I dont understand why it is so big. I uploaded an xlsx file which is approx 1mb but if I save it as excel 1997-03 it shows that it is 3MB which I dont understand why.

    Hope that the new sample it helps

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Display box

    Try This, the msgbox code came right from the Excel Help File.

    The code is the WorkSheet Module, Make a selection in Column A to Activate the code
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    01-26-2010
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    162

    Re: Display box

    Quote Originally Posted by davesexcel View Post
    Try This, the msgbox code came right from the Excel Help File.

    The code is the WorkSheet Module, Make a selection in Column A to Activate the code
    Hello davesexcel thank you for your help, it looks good although it copies the data to "not elidgible" sheet and doesnt delete the row from "Recruitment sheet"
    Also what do u mean by make a section in column A to activate the code?

    Many thanks.

  8. #8
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Display box

    Use this code instead, it will delete the target row.
    Please Login or Register  to view this content.
    Did you notice your workbook had been reduced to 70kb ?
    Last edited by davesexcel; 05-17-2010 at 09:01 AM.

  9. #9
    Forum Contributor
    Join Date
    01-26-2010
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    162

    Re: Display box

    hello davesexcel,

    thank you for quick respond. still the rows have the "not eligible" criteria are only copied to the "not eligible" sheet. I still can see them in my recruitment sheet.
    Btw how did u make the data only 70 kb?? thats magic

    thanks

  10. #10
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Display box

    You need to replace the code in the worksheet module with the most recent code I gave you.
    Right click on the sheet tab and select view code, delete the code there, then copy and paste the code from yesterday into that module.

    On the original example you supplied, Hit Ctrl & End, this takes you to the end of the used range in your sheet, in this case it goes to row 65536. This usually happens when you format the entire sheet instead of just the used range.
    Select the rows you are not using and goto Edit=>Clear=>All, then re-save the workbook.This will make the Workbook Smaller.

    Find attached the Worksheet with the revised code.
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    01-26-2010
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    162

    Re: Display box

    hello davesexcel,

    thank you for the updated spreadsheet it works fine. I had pasted the code into the module and not the
    workbook code. The only thing that is not working as I would have liked it is that when the postcode is in the "City" the cursor stays at the same cell and it doesn't jump in column D. It only jumps there once the pop up box is displayed and I select Yes but if the pop up box is not displayed (which mean that candidate meets criteria) I still would like that to jump in column D.

    Many thanks

+ 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