LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Compile error when closing excel

I've got a weird one here...

I have an excel sheet with vb controls - textboxes and combo boxes. I
put a bit of code behind one of the combo boxes to enable and disable a
few textboxes based on the value of combo box.

The code works perfectly, compiles, saves ... The problem happens when
I close the workbook: I get a compile error stating that the textbox
that I am enabling/disabling does not exist.

If I rename the textbox and adjust the code, I can close the workbook
only one time. The second time I get the same compile error.

I've tried replacing the textboxes, with new names, and the same thing
happens again.

What is triggering the compile on the exit of the workbook? Why would
the text boxes only be unrecognized on exit?

Any help would be much appreciated!


---
Message posted from http://www.ExcelForum.com/

 
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
Compile error in Excel 2002 Ilya Zeldes New Users to Excel 8 December 28th 09 02:11 AM
excel compile error. Only some computers? Bob Aylward Excel Discussion (Misc queries) 0 December 13th 05 07:16 PM
excel compile error. Only some computers? Bob Aylward Excel Discussion (Misc queries) 0 December 13th 05 07:16 PM
Excel 2002 Compile Error ? Dash Excel Programming 1 August 25th 03 09:19 AM


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