Check cell for data before running code

  • Thread starter Thread starter Pat
  • Start date Start date
P

Pat

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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top