Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
have a number of macros wrtten that are currently activated by buttons on top of cells. Here is one such macro: Sub Printall() ' ' Printall Macro ' Macro recorded 17/09/2009 by User ' ' Range("A10:CF53").Select ActiveSheet.PageSetup.PrintArea = "$A$10:$CF$53" Range("A1").Select End Sub How do I use this to now change to just a cell (double-click) activated macro? Do I enter the sheet name and cell reference somewhere? Have read the following from an earlier question but frankly don`t follow it!!! Sorry The following in the Worksheet Selection Change event should do the trick Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Not Intersect(Target, Range("B4")) Is Nothing Then Range("B4") ="24" End Sub Thanks RR1 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Clicking on cell | Excel Discussion (Misc queries) | |||
Run a macro when clicking a cell. | Excel Worksheet Functions | |||
Run a macro after clicking into cell | Excel Worksheet Functions | |||
Using Macro to sort without clicking on macro button | Excel Discussion (Misc queries) | |||
Run macro from clicking on a cell | Excel Discussion (Misc queries) |