Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Excecute Macro if cell changes

Hallo Guys,

I have created a new table at runtime and want excecute some code if
the user clicks on a cell. How can I do that?

This doese not work:

Dim oWKS as Worksheet
Set oWKS = ThisWorkbook.Worksheets.Add
oWKS.cells(1,1).onAction = "MyMacro" ' Error

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Excecute Macro if cell changes

use a worksheet eventright click sheet tabview codein left
windowworksheetselect from right window

--
Don Guillett
SalesAid Software

wrote in message
oups.com...
Hallo Guys,

I have created a new table at runtime and want excecute some code if
the user clicks on a cell. How can I do that?

This doese not work:

Dim oWKS as Worksheet
Set oWKS = ThisWorkbook.Worksheets.Add
oWKS.cells(1,1).onAction = "MyMacro" ' Error



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Excecute Macro if cell changes

The problem is solved.

Thank you

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Excecute Macro if cell changes

glad to help

--
Don Guillett
SalesAid Software

wrote in message
oups.com...
The problem is solved.

Thank you



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
'IF' Macro to insert cell contents to alternate cell if cell not e Gryndar Excel Worksheet Functions 6 December 20th 08 05:02 PM
using a cell value to control a counter inside a macro and displaying macro value ocset Excel Worksheet Functions 1 September 10th 06 05:32 AM
Unable to excecute formula ch Excel Discussion (Misc queries) 4 November 26th 04 04:23 PM
macro to run a separate macro dependent on value in cell scottwilsonx[_13_] Excel Programming 3 July 26th 04 02:30 PM
Question: Cell formula or macro to write result of one cell to another cell Frederik Romanov Excel Programming 1 July 8th 03 03:03 PM


All times are GMT +1. The time now is 11:12 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"