PC Review


Reply
Thread Tools Rate Thread

Changing linked cell runs ComboBox code

 
 
=?Utf-8?B?aG1t?=
Guest
Posts: n/a
 
      21st Aug 2007
I run a macro with a line that changess a cell also linked to a ComboBox.
After changing this cell, the ComboBox code is called, undesiredly.

How do I disable the calling of ComboBox code from a macro that changes the
ComboBox linked cell?

Thanks.
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      21st Aug 2007
I don't think you can.

You could drop the linkedness and do everything in code.

or you could declare a public variable in a General module and do something
like:

Public BlkProc as boolean

sub yoursub()
blkproc = true
activesheet.range("a1").value = "hi"
blkproc = false
end sub

Then in the combobox code:

sub comboboxsub()

if blkproc then exit sub 'just get out

'your code here
end sub



hmm wrote:
>
> I run a macro with a line that changess a cell also linked to a ComboBox.
> After changing this cell, the ComboBox code is called, undesiredly.
>
> How do I disable the calling of ComboBox code from a macro that changes the
> ComboBox linked cell?
>
> Thanks.


--

Dave Peterson
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveX ComboBox Linked Cell kittronald Microsoft Excel Programming 1 5th Aug 2011 02:36 PM
ComboBox still shows data when linked cell is empty Brettjg Microsoft Excel Programming 11 15th Apr 2009 11:37 PM
VLOOKUP anchored cell reference changing when macro runs =?Utf-8?B?cXVlc3Rvcg==?= Microsoft Excel Misc 2 14th Sep 2007 05:48 PM
ComboBox Goes Blank When Form's AfterUpdate Code Runs Christopher Hickman via AccessMonster.com Microsoft Access Forms 12 5th Apr 2005 10:07 PM
Control Combobox Linked Cell vs Forms Combobox Linked Cell RamblinWreck Microsoft Excel Misc 2 26th Mar 2004 03:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:58 PM.