Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
caliskier
 
Posts: n/a
Default Creating Error pop ups


I am looking at validation to see if I can make a error message pop up
only when the user clicks a different sheet or attempts to save as I
don’t want to annoy people with having to constantly click on message
boxes. Is this possible?


--
caliskier
------------------------------------------------------------------------
caliskier's Profile: http://www.excelforum.com/member.php...o&userid=25887
View this thread: http://www.excelforum.com/showthread...hreadid=502939

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Creating Error pop ups

Not using Data|Validation, but you could use worksheet_deactivate or
workbook_beforesave (or workbook_beforeclose) to run code that validates the
user's input.

But I don't think I'd bother -- lots of things could go wrong (user choosing not
to enable macros or disabling events).

I'd use an adjacent cell and just put a formula that checks:

=if(isnumber(a1),"","Please put a number in A1!")

format it in big red letters and the error will be seen immediately.

caliskier wrote:

I am looking at validation to see if I can make a error message pop up
only when the user clicks a different sheet or attempts to save as I
don’t want to annoy people with having to constantly click on message
boxes. Is this possible?

--
caliskier
------------------------------------------------------------------------
caliskier's Profile: http://www.excelforum.com/member.php...o&userid=25887
View this thread: http://www.excelforum.com/showthread...hreadid=502939


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
caliskier
 
Posts: n/a
Default Creating Error pop ups


Thanks, apreciate the help


--
caliskier
------------------------------------------------------------------------
caliskier's Profile: http://www.excelforum.com/member.php...o&userid=25887
View this thread: http://www.excelforum.com/showthread...hreadid=502939

  #4   Report Post  
Posted to microsoft.public.excel.misc
Gord Dibben
 
Posts: n/a
Default Creating Error pop ups

Validation won't do it.

You need VBA event code.

See Chip Pearson's site for event code instructions specificaly
worksheet_deactivate and workbook_beforesave

http://www.cpearson.com/excel/events.htm

And David McRitchie's site.

http://www.mvps.org/dmcritchie/excel/event.htm


Gord Dibben MS Excel MVP

On Thu, 19 Jan 2006 10:22:08 -0600, caliskier
wrote:


I am looking at validation to see if I can make a error message pop up
only when the user clicks a different sheet or attempts to save as I
don’t want to annoy people with having to constantly click on message
boxes. Is this possible?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating custom list with a comma in it barnabel Excel Discussion (Misc queries) 6 January 10th 06 06:14 AM
Creating an invoice with a lookup list wings Excel Discussion (Misc queries) 6 October 30th 05 02:37 AM
Can I import a new colour into the options for creating charts? Lyn37 Charts and Charting in Excel 1 September 8th 05 06:54 PM
Is there a template for creating outline in Excel as opposed to W Charlie Starnes Excel Worksheet Functions 0 June 22nd 05 07:49 PM
Eliminate creating list that returns blank cells Marc Todd Excel Worksheet Functions 1 January 26th 05 09:58 PM


All times are GMT +1. The time now is 12:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"