Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Help - Change Event triggered on File Save As

I have a problem with a simple excel 2002 application I am developing.

Whenever I do a "File Save As" the sub below is triggered.
(To help pinpoint the problem I stripped the application
of every single line of code and added this one below and modified the
offending sub as seen below)

Private Sub ComboBoxPC_Change()
MsgBox "hello"
End Sub


The combo, from the control toolbox, is on a worksheet.

Even though the file is devoid of all code and the combo no longer has
any function the "File Save As" will still trigger the Message dialog
shown above.
A simple file save will not trigger the event.

this is really puzzling, to say the least.

any help would be appreciated. this is driving me nuts.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Help - Change Event triggered on File Save As

Is it linked to a cell. Try removing the link.

--
Regards,
Tom Ogilvy

Dee Veloper wrote in message
m...
I have a problem with a simple excel 2002 application I am developing.

Whenever I do a "File Save As" the sub below is triggered.
(To help pinpoint the problem I stripped the application
of every single line of code and added this one below and modified the
offending sub as seen below)

Private Sub ComboBoxPC_Change()
MsgBox "hello"
End Sub


The combo, from the control toolbox, is on a worksheet.

Even though the file is devoid of all code and the combo no longer has
any function the "File Save As" will still trigger the Message dialog
shown above.
A simple file save will not trigger the event.

this is really puzzling, to say the least.

any help would be appreciated. this is driving me nuts.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Help - Change Event triggered on File Save As

Hi Tom
I almost never use controls in a worksheet (use them in userforms) but
no, I almost never use the "linkedcell" property and not in this
instance.

However, I did have a "listfillrange" using a named range. That was
the gremlin. Your post allowed me to solve the problem..so thank you
very much!

In passing, I still don't understand why the behaviour..just know that
I have
to code the listfillrange. why would the file save as trigger a change
given the range referenced by the list does not change on a File Save
As?



"Tom Ogilvy" wrote in message ...
Is it linked to a cell. Try removing the link.

--
Regards,
Tom Ogilvy

Dee Veloper wrote in message
m...
I have a problem with a simple excel 2002 application I am developing.

Whenever I do a "File Save As" the sub below is triggered.
(To help pinpoint the problem I stripped the application
of every single line of code and added this one below and modified the
offending sub as seen below)

Private Sub ComboBoxPC_Change()
MsgBox "hello"
End Sub


The combo, from the control toolbox, is on a worksheet.

Even though the file is devoid of all code and the combo no longer has
any function the "File Save As" will still trigger the Message dialog
shown above.
A simple file save will not trigger the event.

this is really puzzling, to say the least.

any help would be appreciated. this is driving me nuts.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Help - Change Event triggered on File Save As

I guess it is recalculated, so it counts as a change.

--
regards,
Tom Ogilvy

Dee Veloper wrote in message
om...
Hi Tom
I almost never use controls in a worksheet (use them in userforms) but
no, I almost never use the "linkedcell" property and not in this
instance.

However, I did have a "listfillrange" using a named range. That was
the gremlin. Your post allowed me to solve the problem..so thank you
very much!

In passing, I still don't understand why the behaviour..just know that
I have
to code the listfillrange. why would the file save as trigger a change
given the range referenced by the list does not change on a File Save
As?



"Tom Ogilvy" wrote in message

...
Is it linked to a cell. Try removing the link.

--
Regards,
Tom Ogilvy

Dee Veloper wrote in message
m...
I have a problem with a simple excel 2002 application I am developing.

Whenever I do a "File Save As" the sub below is triggered.
(To help pinpoint the problem I stripped the application
of every single line of code and added this one below and modified the
offending sub as seen below)

Private Sub ComboBoxPC_Change()
MsgBox "hello"
End Sub


The combo, from the control toolbox, is on a worksheet.

Even though the file is devoid of all code and the combo no longer has
any function the "File Save As" will still trigger the Message dialog
shown above.
A simple file save will not trigger the event.

this is really puzzling, to say the least.

any help would be appreciated. this is driving me nuts.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Help - Change Event triggered on File Save As

The saveas method prompts a recalculation and may make
changes to the open workbook. The saveCopyAs method does
not change the open workbook, and may be of benefit

Steve
-----Original Message-----
I have a problem with a simple excel 2002 application I

am developing.

Whenever I do a "File Save As" the sub below is triggered.
(To help pinpoint the problem I stripped the application
of every single line of code and added this one below and

modified the
offending sub as seen below)

Private Sub ComboBoxPC_Change()
MsgBox "hello"
End Sub


The combo, from the control toolbox, is on a worksheet.

Even though the file is devoid of all code and the combo

no longer has
any function the "File Save As" will still trigger the

Message dialog
shown above.
A simple file save will not trigger the event.

this is really puzzling, to say the least.

any help would be appreciated. this is driving me nuts.
.



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
Automatic copy triggered by change in date Xerxes Excel Worksheet Functions 1 November 23rd 07 11:04 AM
Combobox Click event triggered when copying worksheet Tom Ogilvy Excel Programming 2 June 30th 05 04:54 PM
Macro triggered by an event AussieAVguy Excel Discussion (Misc queries) 2 June 16th 05 05:51 AM
Combobox Change Event when file is saved as E.Anderegg Excel Programming 1 October 1st 03 05:03 PM
Event triggered by Hiding/Unhiding columns? Jerry W. Lewis Excel Programming 1 July 23rd 03 09:17 AM


All times are GMT +1. The time now is 03:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"