Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel warning with VBA 1

Status
Not open for further replies.

kabushnell

Technical User
Jun 4, 2003
81
US
I have a worksheet in Excel that contains an ID # and following each ID there is a dollar amount entered each month. Similar to the following:

ID Total Jan Feb Mar
8603 200 125 50 25

There can be the same ID several times. Basically what I have is that no single ID total can be greater than 700, and no ID total can be over 1400. I have formulas written that total each row and then again for the total ID. What I was wondering is if there is a way to have Excel pop up an error when someone enters an amount in one of the months that brings that particular ID over the 700 or 1400 limit?

I hope that isn't to confusing. Right now we have to enter the amounts each month and then go see if anyone has gone over the limits. Any help is greatly appreciated.
 
Bowers - doesn't work for me - what version of excel are you running ??
I'm on 2002 SP1

Rgds, Geoff
Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?
Want the best answers to your questions ? faq222-2244
 
xlbo - so am I!

Enter a value that causes an error, click Retry and then select a different cell.

That's what I'm doing.

By the way, Remember what we discussed earlier this week about not being appreciated? :-(

If you can't be "The Best", be the best at what you can!!!

Never say Never!!!
Nothing is impossible!!!
 
Hi Bowers,

Thanks for pointing me here from the other thread. I have had a play with this and learnt a fair deal. Have a star.

On the User being able to get round the validation, the behaviour seems inconsistent and I can't work out why sometimes it lets me do it and most of the time it doesn't.

Enjoy,
Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top