Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Pat Pat is offline
external usenet poster
 
Posts: 122
Default Check cell for data before running code

I want to ensure G9 on a worksheet contains a value before the main body of
code is run. If G9 contains a value do not remind the user, if G9 does not
contain a value remind the user to enter a value in G9.
Anyone know what I need to enter at the start of a running code?
If anyone thinks I should approach this from a different angle please let me
know.

Thanks
Pat


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Check cell for data before running code

hi,

the most simple of all but there are many others olutions than can let enter
something while you're running the program.

try this in the beginning of your program.
if isempty(cells(9,7) then
msgbox "you've got something to enter in G9 befor teh program runs"
exit sub
end if

So long

"Pat" a écrit dans le message de news:
...
I want to ensure G9 on a worksheet contains a value before the main body

of
code is run. If G9 contains a value do not remind the user, if G9 does not
contain a value remind the user to enter a value in G9.
Anyone know what I need to enter at the start of a running code?
If anyone thinks I should approach this from a different angle please let

me
know.

Thanks
Pat




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
Have code check cell contents on edit. Andrew Excel Worksheet Functions 1 January 16th 08 04:47 AM
how : check register running balance is a stationary cell Michele Excel Discussion (Misc queries) 9 January 19th 05 05:25 PM
Check for instance of EXCEL running Kevin Excel Programming 3 September 14th 04 01:03 PM
check for running app L3Tech Excel Programming 6 February 20th 04 12:50 AM
Check for Excel version before running? Ed[_9_] Excel Programming 2 December 18th 03 01:56 PM


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