LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default Code to do edit checks when user moves out of a cell

I have a spreadsheet that the user inputs 4 dates (into 4 different cells)
where those dates are used in an SQL query against a database. Is there a way
to perform edit checks once the dates are input so as not to have the SQL
query execute until the dates are known to be valid ?

Base Period Start Date
Base Period End Date

Current Period Start Date
Current Period End Date

Obviously the start dates need to be before the respective end dates, but
also the Base Period needs to be prior to the Current Period. Also, no dates
can be blank, and none can be greater than yesterday.

Is there a way to execute a macro when each cell where these numbers are
input loses focus ... or am I better off with performing the total edit
checks once all 4 cells are filled in ?
 
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
Attempted edit of protected cell jumps user to another cell megangomez Excel Discussion (Misc queries) 2 August 6th 09 12:54 AM
Tweak to code that checks colors of fonts and moves to proper shee SCrowley Excel Programming 0 March 4th 08 07:56 PM
when exiting combobox, this code moves the selected cell down two rows instead of one Harold Good Excel Programming 0 December 6th 07 05:54 PM
cell edit by user wally0206 Excel Programming 2 May 29th 06 11:55 AM
Help with code that checks if a sheet exists wachen Excel Programming 2 February 10th 04 02:39 AM


All times are GMT +1. The time now is 06:57 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"