• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Macros run by one click

sachar

Member
Hi,
So far I have a button to start the macro in excel, but that's really uncomfortable.
Basically, I would like to double click a cell/icon to run the macros.


Has anyone any Idea?
 
In a worksheet event
Code:
Option Explicit

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
ActiveCell.Value = "Hello World!"

End Sub
 
Back
Top