HI,

How to include macro in private module?

 

Regards,

Hitesh Dhare

+919824004308

New * Email ID: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 

________________________________

From: excel-macros@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Alokeshwar Tiwary
Sent: Friday, September 12, 2008 4:17 AM
To: excel-macros@googlegroups.com
Subject: $$Excel-Macros$$ Re: Make a cell a control that launches macro
whenclicked

 



Place this code in private module of the worksheet:

 

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
If ActiveCell.Address = "$C$3" Then
Cancel = True
Call MyMacro
End If
End Sub

 

As soon as user double clicks the Cell C3, it cancels the click action
and calls MyMacro.

 



________________________________________________________________________
_________________________


--- On Thu, 11/9/08, Tony Bender <[EMAIL PROTECTED]> wrote:

        From: Tony Bender <[EMAIL PROTECTED]>
        Subject: $$Excel-Macros$$ Make a cell a control that launches
macro when clicked
        To: "MS Excel & VBA Macros" <excel-macros@googlegroups.com>
        Date: Thursday, 11 September, 2008, 8:38 PM

        Is there a way to set a cell so when the user clicks on it, it
        launches a specified macro?
         
        If so can you show me how it's done?
         
        Thank you,
         
         
         





________________________________

Unlimited freedom, unlimited storage. Get it now</a


<http://in.rd.yahoo.com/tagline_mail_2/*http:/help.yahoo.com/l/in/yahoo/
mail/yahoomail/tools/tools-08.html/> 

 



****************************************************************************************************
Idea has dropped its roaming tariff for you to be in touch with your loved ones 
when away from home. 
Now outgoing and incoming calls at Re. 1/min and STD at Rs. 1.5/min while 
roaming. Happy Roaming!
****************************************************************************************************

************************************************************************
ideacellular.com E-Mail Domain is now idea.adityabirla.com E-Mail Domain
************************************************************************

An idea can change your life. 

************** LEGAL DISCLAIMER ************
This E-Mail may contain Confidential and/or legally privileged Information and 
is meant for the intended recipient(s) only. If you have received this e-mail 
in error and are not the intended recipient/s, kindly notify us at [EMAIL 
PROTECTED] and then delete this e-mail immediately from your system. You are 
also hereby notified that any use, any form of reproduction, dissemination, 
copying, disclosure, modification, distribution and/or publication of this 
e-mail, its contents or its attachment/s other than by its intended recipient/s 
is strictly prohibited and may be unlawful.

Internet Communications cannot be guaranteed to be secure or error-free as 
information could be delayed, intercepted, corrupted, lost, or contain viruses. 
IDEA Cellular Limited does not accept any liability for any errors, omissions, 
viruses or computer problems experienced by any recipient as a result of this 
e-mail.
--~--~---------~--~----~------------~-------~--~----~
Visit the blog to download Excel tutorials at 
http://www.excel-macros.blogspot.com

To post to this group, send email to excel-macros@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/excel-macros?hl=en

Visit & Join Our Orkut Community at 
http://www.orkut.com/Community.aspx?cmm=22913620

Visit the blog to download Excel tutorials at 
http://www.excel-macros.blogspot.com

To Learn VBA Macros Please visit http://www.vbamacros.blogspot.com

To see the Daily Excel Tips, Go to:
http://exceldailytip.blogspot.com
-~----------~----~----~----~------~----~------~--~---

Reply via email to