Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,814
Default unprotect worksheet error

Morning all.
I just received an error while trying to run a macro. While this is the
first time I've operated on this workbook, I did check the information that
the error message provided and it doesn't appear to apply on this file.

Here is the message I received:
-------------------------------------
run time error 1004
you cannot use this command on a protected sheet. to use this command, you
must first unprotect the sheet ( review tab, changes group, unprotect sheet
button). you may be prompted for a password.
-------------------------------------

I went to the review tab, looked at the changes group, and there is no
"unprotect" option. I then clicked on the protect workbook icon, and it says
unrestricted access. I then tried clicking on that, and nothing changes-- as
it's already checked.

Any ideas on how to resolve this?

So far I've been able to run other macros with no trouble, so I'm a little
stuck/confused here.
Your helps are deeply appreciated.

The macro that I'm running is one that I obtained from Thomlinson.
Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,814
Default unprotect worksheet error

In further investigation-- looking in the visual basic editor, "This
Workbook" through the properties window-- I've found that there is a
password. However, I do not see any way to remove this password-- as stated,
there is no option to unprotect the worksheet, or workbook, as it shows
unrestricted access in the review tab, changes group.
Any ideas?


"Steve" wrote:

Morning all.
I just received an error while trying to run a macro. While this is the
first time I've operated on this workbook, I did check the information that
the error message provided and it doesn't appear to apply on this file.

Here is the message I received:
-------------------------------------
run time error 1004
you cannot use this command on a protected sheet. to use this command, you
must first unprotect the sheet ( review tab, changes group, unprotect sheet
button). you may be prompted for a password.
-------------------------------------

I went to the review tab, looked at the changes group, and there is no
"unprotect" option. I then clicked on the protect workbook icon, and it says
unrestricted access. I then tried clicking on that, and nothing changes-- as
it's already checked.

Any ideas on how to resolve this?

So far I've been able to run other macros with no trouble, so I'm a little
stuck/confused here.
Your helps are deeply appreciated.

The macro that I'm running is one that I obtained from Thomlinson.
Thank you.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default unprotect worksheet error

Hi Steve

Check all sheets in the workbook to confirm they are all unprotected.

Another way:
Try to click "Debug" when you get this error. Look at the highlighted line,
it may indicate which sheet the macro is trying to change. If not look at
the lines above.

Once you have identified the protected sheet you may consider to let the
macro unprotect the sheet, before manipulating the sheet.

Regards,
Per

"Steve" skrev i meddelelsen
...
Morning all.
I just received an error while trying to run a macro. While this is the
first time I've operated on this workbook, I did check the information
that
the error message provided and it doesn't appear to apply on this file.

Here is the message I received:
-------------------------------------
run time error 1004
you cannot use this command on a protected sheet. to use this command, you
must first unprotect the sheet ( review tab, changes group, unprotect
sheet
button). you may be prompted for a password.
-------------------------------------

I went to the review tab, looked at the changes group, and there is no
"unprotect" option. I then clicked on the protect workbook icon, and it
says
unrestricted access. I then tried clicking on that, and nothing changes--
as
it's already checked.

Any ideas on how to resolve this?

So far I've been able to run other macros with no trouble, so I'm a little
stuck/confused here.
Your helps are deeply appreciated.

The macro that I'm running is one that I obtained from Thomlinson.
Thank you.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,814
Default unprotect worksheet error

Thanks Jessen.....
That was it. I don't know I didn't think of going through one worksheet at a
time. I had in fact checked debug, and saw which worksheet the error was
thrown on, but didn't think of activating that sheet, and looking at it to do
this.
Best.
8-D


"Per Jessen" wrote:

Hi Steve

Check all sheets in the workbook to confirm they are all unprotected.

Another way:
Try to click "Debug" when you get this error. Look at the highlighted line,
it may indicate which sheet the macro is trying to change. If not look at
the lines above.

Once you have identified the protected sheet you may consider to let the
macro unprotect the sheet, before manipulating the sheet.

Regards,
Per

"Steve" skrev i meddelelsen
...
Morning all.
I just received an error while trying to run a macro. While this is the
first time I've operated on this workbook, I did check the information
that
the error message provided and it doesn't appear to apply on this file.

Here is the message I received:
-------------------------------------
run time error 1004
you cannot use this command on a protected sheet. to use this command, you
must first unprotect the sheet ( review tab, changes group, unprotect
sheet
button). you may be prompted for a password.
-------------------------------------

I went to the review tab, looked at the changes group, and there is no
"unprotect" option. I then clicked on the protect workbook icon, and it
says
unrestricted access. I then tried clicking on that, and nothing changes--
as
it's already checked.

Any ideas on how to resolve this?

So far I've been able to run other macros with no trouble, so I'm a little
stuck/confused here.
Your helps are deeply appreciated.

The macro that I'm running is one that I obtained from Thomlinson.
Thank you.



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
400 Error in Unprotect/Protect Macro Youngergirl44 Excel Discussion (Misc queries) 1 September 23rd 08 01:29 PM
Error 1004 in Excel 97 when trying to unprotect a worksheet glyn Excel Programming 0 January 27th 06 02:32 PM
unprotect VBA error Dan Winterton Excel Programming 0 November 12th 04 01:06 PM
Unprotect worksheet error fiona Excel Programming 3 October 4th 04 12:34 PM
Unprotect method run-time error Rohit Thomas Excel Programming 0 July 8th 03 07:32 PM


All times are GMT +1. The time now is 07:55 PM.

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"