Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default VB editor bug?

I am trying to use a spreadsheet that I made in Excel2003, on a machine
running Excel97. Specifically I am getting an error in Excel97 when invoking
the protect/unprotect methods of the ActiveSheet.

When I step through the code in the VB editor - it works fine; however, when
I run the code (i.e. with F5 or from a command button on the worksheet) it
errors out on the unprotect/protect methods.

This completely baffles me.

Has anyone else had this type of problem? Am I missing something obvious?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default VB editor bug?

Change the TakeFocusOnClick property of the Commandbutton to False

this is a bug in Excel 97, fixed in later versions.

--
Regards,
Tom Ogilvy


"John" wrote:

I am trying to use a spreadsheet that I made in Excel2003, on a machine
running Excel97. Specifically I am getting an error in Excel97 when invoking
the protect/unprotect methods of the ActiveSheet.

When I step through the code in the VB editor - it works fine; however, when
I run the code (i.e. with F5 or from a command button on the worksheet) it
errors out on the unprotect/protect methods.

This completely baffles me.

Has anyone else had this type of problem? Am I missing something obvious?

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
VBA Editor Ken G Setting up and Configuration of Excel 2 July 10th 09 02:03 PM
VBA Editor Jonathan Cooper Excel Discussion (Misc queries) 0 March 24th 08 09:15 PM
VB Editor mlh Excel Discussion (Misc queries) 2 June 29th 07 01:17 PM
VBA Editor Pierre[_17_] Excel Programming 4 January 28th 06 02:30 PM
VBA Editor won't run derlake Excel Programming 1 May 30th 04 06:30 AM


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