Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default unable to protect cells in macro sheet b/c runtime error 1004

I inherited a spreadsheet that consists of 2 sheets. Sheet 1 has a macro
that sorts data from sheet 2. This is how it works:

I enter "automotive" into Sheet 1 A2.
Then I press Ctrl A.
This command automatcally enters data into column B ( data from Sheet 2 that
is associated with "automotive" in Sheet 2.

I want to protect the entire Sheet 1 to protect the macros EXCEPT for A2. I
am able to protect the sheet except for A2 (so people could enter data such
as "automotive), but when I do the Ctrl A command, I get an error saying,

"Run-time error 1004: The cell or chart you are trying to change is
protected and therefore read only."

How can I protect A2 in Sheet 1 without affecting the macros?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,069
Default unable to protect cells in macro sheet b/c runtime error 1004

One way...

Have your macro (Ctrl-A ) unprotect the sheet, update column B, then
re-protect the sheet.

Hope this helps,

Hutch

"rldjda" wrote:

I inherited a spreadsheet that consists of 2 sheets. Sheet 1 has a macro
that sorts data from sheet 2. This is how it works:

I enter "automotive" into Sheet 1 A2.
Then I press Ctrl A.
This command automatcally enters data into column B ( data from Sheet 2 that
is associated with "automotive" in Sheet 2.

I want to protect the entire Sheet 1 to protect the macros EXCEPT for A2. I
am able to protect the sheet except for A2 (so people could enter data such
as "automotive), but when I do the Ctrl A command, I get an error saying,

"Run-time error 1004: The cell or chart you are trying to change is
protected and therefore read only."

How can I protect A2 in Sheet 1 without affecting the macros?

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
Macro runtime error 1004 with Autofilter Lorna B Excel Discussion (Misc queries) 3 May 25th 07 08:38 PM
runtime error 1004 HELP PLS Marcelo P Excel Discussion (Misc queries) 2 May 23rd 07 08:56 PM
runtime error 1004 valdesd Excel Discussion (Misc queries) 0 October 12th 05 05:30 PM
Runtime Error '1004' [email protected] Excel Discussion (Misc queries) 2 July 18th 05 06:10 AM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM


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