Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 196
Default Clicking on a cell to execute a routine

I am using Excel 97.

Can anyone assist me please. I am wanting some code which
(if it possible) when you double click on a cell it runs a
routine to call a calendar.

I would be using this routine only on cells B7 - B28 & C7 -
C28.

I have the code for the calendar I just need some code
start the routine off.

Regards

Mark
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Clicking on a cell to execute a routine

Mark,

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)

If Not Intersect(Target, Range("B7:B28,C7:C28")) Is Nothing Then
myCalendar
End If

End Sub

in the worksheet code module

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Mark" wrote in message
...
I am using Excel 97.

Can anyone assist me please. I am wanting some code which
(if it possible) when you double click on a cell it runs a
routine to call a calendar.

I would be using this routine only on cells B7 - B28 & C7 -
C28.

I have the code for the calendar I just need some code
start the routine off.

Regards

Mark



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 196
Default Clicking on a cell to execute a routine

Bob,

Many thanks

Mark

-----Original Message-----
I am using Excel 97.

Can anyone assist me please. I am wanting some code

which
(if it possible) when you double click on a cell it runs

a
routine to call a calendar.

I would be using this routine only on cells B7 - B28 &

C7 -
C28.

I have the code for the calendar I just need some code
start the routine off.

Regards

Mark
.

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
Using a cell in the worksheet as a range in a VBA routine dhstein Excel Discussion (Misc queries) 2 December 4th 08 12:13 AM
To execute a formula upto in a cell pol Excel Discussion (Misc queries) 3 August 22nd 08 07:24 AM
Execute vba code on cell exit Bill (Unique as my name) Excel Discussion (Misc queries) 2 May 24th 07 03:48 PM
How do i execute a VBA function by clicking on an excel cell? Matthew Excel Discussion (Misc queries) 1 December 7th 05 01:10 AM
Selecting Active Cell before Text Import Routine Paul Excel Programming 2 November 17th 03 10:01 PM


All times are GMT +1. The time now is 07:10 PM.

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

About Us

"It's about Microsoft Excel"