+ Reply to Thread
Results 1 to 2 of 2

Problem: Worksheets("New Style 2006").Unprotect Password:="naPrint"

  1. #1
    Karoo News
    Guest

    Problem: Worksheets("New Style 2006").Unprotect Password:="naPrint"

    Why do I get get a run time error 1004 when using this command on Excel 97?

    The above script is in sub of a Control Command Button.

    Rgds
    Neil




  2. #2
    Tom Ogilvy
    Guest

    Re: Problem: Worksheets("New Style 2006").Unprotect Password:="naPrint"

    Set the TakeFocusOnClick property of the Commandbutton to false. This is a
    bug in xl97.

    --
    Regards,
    Tom Ogilvy


    "Karoo News" <neil.null@orange.net> wrote in message
    news:7RWdnXuN-prRvUPeSa8jmw@karoo.co.uk...
    > Why do I get get a run time error 1004 when using this command on Excel

    97?
    >
    > The above script is in sub of a Control Command Button.
    >
    > Rgds
    > Neil
    >
    >
    >




+ 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