> >> Typing the account number for each client ...
>
[quoted text clipped - 89 lines]
> >> >
> >> > Craig
>>Is it safe to assume that when you double click on the cell that that cell
>>is now selected?
Yeah, I think so. But you have to add code that checks whether a cell
that's double clicked it one you should copy. A user could double click
anywhere. Also, a user could accidentally double click a cell, a possible
downside of this technique.
>>I tried the hyperlink, but how do I get the appropriate account number to
>>the new page?
I lost sight of what you want to happen with the double click. A hyperlink
is not application in your situation.
>>I have no clue how to set up the OnDoubleClick to get it to work
Here's an example, plus a little treatise on using the
Worksheet_BeforeDoubleClick event, a technology that was introduced in Excel
97.
''Running this sets the name of the sub to run
''when a double click occurs.
''Note:
'' This is 'Excel 5 technology'. The 'modern'
'' approach uses the Worksheet_BeforeDoubleClick event.
'' To use that, right click the sheet tab and click View Code.
'' Then select Worksheet from the left down down, and
'' Worksheet_BeforeDoubleClick from the right, and add
'' your code. No need to 'set' that handler; it fires automatically
Sub SetOnDoubleClick()
Application.OnDoubleClick = "HandleDoubleclick"
End Sub
Sub HandleDoubleclick()
MsgBox ActiveCell.Address
End Sub

Signature
Jim
> Jim:
> Is it safe to assume that when you double click on the cell that that cell
[quoted text clipped - 131 lines]
>> >> >
>> >> > Craig
IT_roofer - 20 May 2007 00:27 GMT
If I may offer up a suggestion...
You said: "...Typing the account number for each
client you would like more detailed information on, then depressing a
button, seems far more work then simply double clicking on a cell and have
the macro move the account number to the client presentation sheet, where
all the data is shown on a single screen. Then with a "Return" button on
this sheet they can go back to the initial sheet..."
You're right. Programming the functinality of a button can be quite
tedious... however, I'm sure you're familliar with the WorkBook_Open() and
WorkBook_Activate() routines? I would plant a macro in either one of those
two spots that generates a button over the top of the cell (matching
height/width of cell) with the cell contents as the button text... kind of a
CommandButton1.Caption = Sheet1.Range(cell#).Value - Than all you would have
to do is set the Caption of the button as the Value of an assigned cell in
your comparison sheet. And like Jim said, having a button labeled "Return" at
the top of the compairison sheet (above the freeze line) could return them to
the original sheet. Initially, it sounds like a lot of work (and it is), but
once you're done... you're done! And if you have to do something similar in
the future, it's under your belt and a heck of a lot easier the next time
around! Even if you don't use my idea, I hope I at least sparked some kind of
idea for you that works.
Regards
> >>Is it safe to assume that when you double click on the cell that that cell
> >>is now selected?
[quoted text clipped - 168 lines]
> >> >> >
> >> >> > Craig