What event should you put error checking of an Excel sheet into if you want to make sure that all cells are filled in before the sheet is saved?
Is it even possible?
I have some lazy people working here who will fill out as little as possible and I want to be able to force them to fill out all...
John:
That was it exactly!!
I've put the code onto the form, put in the verbage to customize it and it's working just as I want it to.
Thank you so much! I really appreciate it.
Leslie
I have a table that I need to split out to different reports based on a name field. This works fine and I end up with 7 different tables.
I run a Report based on each of these tables and I have some VB code running in the back of the report to make titles visible and not visible.
My problem...
Here's my issue:
I need to write this in SQL, not VBA and i know that it's probably very simple, but I'm not seeing it right now. I'm not large with the text manipulation...
I need to compare a four digit number from one table to a four digit number in a 2nd table. However, the four digit...
Is there a quick way to compare a record in two tables to determine if any changes have been made?
I have two tables with 16 fields. They *should* be identical. And I know for a fact that the first 3 fields of each table will never change.
What I want to do is compare the other 13 fields for...
Compare records
Is there a quick way to compare a record in two tables to determine if any changes have been made?
I have two tables with 16 fields. They *should* be identical. And I know for a fact that the first 3 fields of each table will never change.
What I want to do is compare the...
Skip:
You and Bowers are both right.
It's an interesting mental exercise, but I'm off to convince my boss that it's futile and that the validation route is much better.
Thank you very much for your assistance... it was very much appreciated.
Skip:
I'm really appreciating all this... and I've copied and pasted your code as is.
I decided that it can't be your code <g>, so it has to be something that I'm doing to cause these errors.
I realized that I hadn't protected the sheet, so I did that, and now it's telling me:
"Unable...
Skip, I copied and pasted your code exactly as was.
I'm not sure where the error is coming from. You asked what I got when I put a "watch" on Target.Value, and that's what I've got when it stops with the "type mismatch" error.
Stepping through the code, Target.value never...
Mike:
Thank you so much. I'm going to file this away for future reference. I would *love* to do it this way, if only for consistency's sake.
But....
TBTB want it this other way. Nothing like giving me a challenge <g>
Hey Skip:
This is what I get:
Target.value - type variant/variant(1 to 1, 1 to 3)
target.value(1,1) - value #11/03/2003# type variant/date
target.value(1,2) - value Empty type variant/empty
target.value(1,3) - value Empty type variant/empty
Thanks, Skip, but I'm getting a "data mismatch error" in the ".value =" line.
Any idea why? Can you not use .value with a "Range" data type?
Yes, it's from a worksheet. I didn't build it, but I'm helping out.
My boss wanted a different answer, but that's kinda what I figured the solution was going to be for both the date and the time references that I have.
Thanks for your quick answer, Geoff!
I've got a form that's going to be used for data entry.
I have cell formatting on so that dates entered come out as "November 3, 2003".
This works fine if someone enters "11/03/03", however when you enter "110303" you get the date relative to January 1, 1900...
actually, that's exactly what I ended up doing.
I deleted all the labels and redid them.
The hardest part being that I had to name the labels the same as I had before because I'd already written the code and was NOT going to rewrite that!
Thanks for your help!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.