Dropdowns in timesheets

swaink

Active Member
Joined
Feb 15, 2002
Messages
432
:D Hi Everyone

I'm looking at that common issue time sheets.

At present the user has a spread sheet that spans many many rows listing all the possible activities next to which they put the time spent on that activity.

What I'd like to achieve is this:-

I want the user highlight either a single cell or several cells then select an activity from a single dropdown field that will be in the top of the form.

The activity selected shall then be displayed in the highlighted cell/s.

The days of the week are headers Mon - Sun.

The Rows shall be hourly intervals starting from say 08:30.

Does this sound achievable and if so does anyone have any suggestions on how I go about it.

Best regards

Kevin :eek:
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
You can use Data Validation for that.

1. Make a list of the items you want in your dropdown and name it eg MyList.

2. Select all the cells where you want the dropdown and choose Data, Validation from the menu.

3. In the Allow box choose List. In the Source box type =MyList. Then press OK.
 
Upvote 0
Hi Andrew thanks for your reply.

I've done as you suggest and its works fine if I select a single cell and then chose from the list.

However when I select more than one cell it only enters the selected activity in the first cell.

Kev
 
Upvote 0
You could use a ComboBox. Right click on any ToolBar and click Control ToolBox. Click the ComboBox icon and click and drag to place it on your worksheet. Right click the ComboBox and choose Properties. Set the ListFillRange property to MyList and close the Properties window. Right click again and choose View Code. Paste this code into the window on the right:

Code:
Private Sub ComboBox1_Change()
    Selection.Value = ComboBox1.Value
End Sub

Press Alt+F11 to return to your worksheet. Click the Design icon in the Toolbox (top left) to exit design mode.
 
Upvote 0
Hi Andrew

Thats done the trick works a treat

Many thanks for your help

Best regards

Kev
:D :D :D
 
Upvote 0
Does this work differently in Office XP !

As this doesnt work for me and i get error 424 object required !
 
Upvote 0

Forum statistics

Threads
1,221,695
Messages
6,161,361
Members
451,699
Latest member
sfairbro

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top