Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 191
Default cell link to userform

Is there a way to either click or doubleclick on a cell and have it start a
userform?
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default cell link to userform

Put this code into the sheet that you want it to work on.

Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)

If Target.Address = "$A$1" Then frmMe.Show

end sub

Which would then load the userform frmMe when cell A1 is clicked


"ranswrt" wrote in message
...
Is there a way to either click or doubleclick on a cell and have it start
a
userform?
Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 191
Default cell link to userform

Will that work if the cell is locked? I don't want the data to be changed in
the cell.

"Graham Whitehead" wrote:

Put this code into the sheet that you want it to work on.

Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)

If Target.Address = "$A$1" Then frmMe.Show

end sub

Which would then load the userform frmMe when cell A1 is clicked


"ranswrt" wrote in message
...
Is there a way to either click or doubleclick on a cell and have it start
a
userform?
Thanks




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
How to Link value from a Cell to a control in the userform Shuvro Basu Excel Programming 1 December 22nd 05 12:25 PM
Link from Userform to Spreadsheet Richard Excel Programming 3 May 22nd 04 05:54 PM
Userform w/ Multiple listboxes that link miker1999[_13_] Excel Programming 1 April 27th 04 03:22 AM
Userform w/ Multiple listboxes that link miker1999[_12_] Excel Programming 0 April 20th 04 12:35 PM
how do I link Textboxes in a userform to a Cell in a Worksheet? Paul Clark Excel Programming 2 January 17th 04 05:16 PM


All times are GMT +1. The time now is 06:31 AM.

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"