Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
lmg lmg is offline
external usenet poster
 
Posts: 2
Default how do I enable marco

Hi all, I am trying to enable a marco when a cell = a value. the cell is
linked to DDE and changes values with a remote device. I cant use
section_change in the VBA to activate my program as the value is
automatically changing. When I configured the cell to change colour via a
formula in the excel sheet the colour changes.
It looks like I have to enable the VBA or macro in the formula bar. Can
anyone please help me with this problem on how to write the formula.
I am using excel 2000 on XP operating system.
thanks in advance
lmg
  #3   Report Post  
Posted to microsoft.public.excel.programming
lmg lmg is offline
external usenet poster
 
Posts: 2
Default how do I enable marco

Hi Nick, thanks for the speedy response. I should have said but I also tried
worksheet_change and it still didnt work.
could you please go into more detail on the 'refresh method'
and give me an example
thanks
lmg

"Nick Hodge" wrote:

Img

Use a worksheet_change event rather than selection_change. This should fire
on any worksheet change. If it does not then enter a formula referring to
you 'refreshing' data and use a worksheet_calculate event

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"lmg" wrote in message
...
Hi all, I am trying to enable a marco when a cell = a value. the cell is
linked to DDE and changes values with a remote device. I cant use
section_change in the VBA to activate my program as the value is
automatically changing. When I configured the cell to change colour via a
formula in the excel sheet the colour changes.
It looks like I have to enable the VBA or macro in the formula bar. Can
anyone please help me with this problem on how to write the formula.
I am using excel 2000 on XP operating system.
thanks in advance
lmg




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 205
Default how do I enable marco

Hi Lmg,

I am trying to enable a marco when a cell = a value. the cell is
linked to DDE and changes values with a remote device.


There are (at least) three alternatives; which one to use will depend
on what you want the macro to do:

1. Use Application.OnData to run a macro every time a DDE link is
updated (See Online help for examples)

2. Use a user-defined-function, called when the cell equals the value,
but that's limited in what it can do.

3. Use the Worksheet_Calculate event to check the cell's value

Regards

Stephen Bullen
Microsoft MVP - Excel
www.oaltd.co.uk


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
HOW TO DO ENABLE ENABLE THE QUERY PARAMETER BUTTON? CPW Excel Worksheet Functions 1 January 21st 10 06:31 PM
How to enable marco/vba editor? Ready010 Excel Discussion (Misc queries) 1 July 15th 09 03:59 AM
enable marco in excel 2007 kitchellw Excel Discussion (Misc queries) 1 July 10th 07 03:27 PM
I need some help with a Marco xgunda420x Excel Discussion (Misc queries) 2 August 2nd 05 01:43 PM
Marco to run every day at 12 bris Excel Programming 6 March 3rd 04 01:07 PM


All times are GMT +1. The time now is 08:09 PM.

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"