Setting up a timesheet where automatically letter equals number

O

office bunny

Is there a way to set up a time sheet where a letter automatically equals a
value (eg: E = 7.5)? I would love to be able to simply type in simple letters
to indicate shift types and have have total times appear at the bottom of the
time sheet. Right now I am doing it manually.
 
S

Steve Schapel

Bunny,

There are a number of approcahes that could be taken to this. I can't
really picture exactly what you are trying to do, so not sure which
angle would be the most suitable. You caould set up an AutoKeys macro,
where you define certain keystroke combination to be associated with
certain numerical values, so you press the keys and it will use SetValue
macro action to enter that number in the active control. Or, you could
set up a table with 2 fields, one with the Letter and the other with the
corresponding NumberValue, and then on your form you could put a
combobox with this table as the Row Source, and when the letter is
typed, the associated number is recorded. Or, you could put a macro or
a VBA procedure on the After Update event of a textbox, so that it
assigns a value to the relevant field according to the letter typed into
the textbox.
 

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

Top