+ Reply to Thread
Results 1 to 2 of 2

VB editor bug?

  1. #1
    John
    Guest

    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. #2
    Tom Ogilvy
    Guest

    RE: 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1