Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
andym
 
Posts: n/a
Default Double-Clicking a cell for Multiple Options

I recently came across a spreadsheet where a cell was double clicked for the
multiple options to become available.

This was similar to a drop-down list, but there was no drop down list!!
Confused?

An example...

The cell currently shows a value of "A".
I double-click on this cell ... the cell changes to "B".
The new value is not random, but coming from a pick list or a pre-determined
list.

Does anybody know how such a feature is created?

Regards,

andym


  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

If you rightclick on that cell and choose "Pick from DropDown List" do you get
the same effect?

If yes, maybe it was a macro that did the work:

Option Explicit

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, _
Cancel As Boolean)
Dim myCtrl As CommandBarControl
Set myCtrl = Nothing
On Error Resume Next
Set myCtrl = Application.CommandBars.FindControl(ID:=1966)
On Error GoTo 0

If myCtrl Is Nothing Then
Exit Sub
Else
myCtrl.Execute
End If

Cancel = true

End Sub

Rightclick on the worksheet tab, select view code and paste this in that code
window.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

andym wrote:

I recently came across a spreadsheet where a cell was double clicked for the
multiple options to become available.

This was similar to a drop-down list, but there was no drop down list!!
Confused?

An example...

The cell currently shows a value of "A".
I double-click on this cell ... the cell changes to "B".
The new value is not random, but coming from a pick list or a pre-determined
list.

Does anybody know how such a feature is created?

Regards,

andym


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mouse continues to select after clicking on a cell in excel. Fletch Excel Discussion (Misc queries) 4 February 22nd 05 02:27 AM
double clicking on a source cell martin Excel Worksheet Functions 1 February 8th 05 02:09 AM
Keyboard shortcut for double click in Excell cell Katherine Excel Discussion (Misc queries) 10 January 13th 05 12:28 AM
Read options in more than one cell Jim Gentile Excel Worksheet Functions 5 December 7th 04 12:35 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 12:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"