Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 470
Default Ref Protected Worksheets

I have a worksheet (Order) that has Range A13:B90 unlocked and the sheet is
protected. I use a macro to force cursor movement left to right for Item# &
Qty, then cursor advances to next row in column A. Col A = Item # and Col B
= Qty.

User can input a valid item number (checked in macro). However, I have a
"0" (zero) as a generic item number that a user can enter. After entering a
qty for a zero item number, I have an inputbox pop up to ask for an item
description. Normally the item description is inserted automatically in
D13:D90 via a formula. This range is protected.

Question, using DIM ItemDesc As String" with this variable holding the value
input via inputbox, how do I insert this value into the cell. I have the
code to do it if the sheet is not protected, but I want the sheet to remain
protected.

Thanks,
Les
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Ref Protected Worksheets

Why not just unprotect the sheet... do your stuff... and re-protect the sheet.

Sheets("Order").Unprotect Password:="Tada"
'do your stuff
Sheets("Order").Protect Password:="Tada"

--
HTH...

Jim Thomlinson


"WLMPilot" wrote:

I have a worksheet (Order) that has Range A13:B90 unlocked and the sheet is
protected. I use a macro to force cursor movement left to right for Item# &
Qty, then cursor advances to next row in column A. Col A = Item # and Col B
= Qty.

User can input a valid item number (checked in macro). However, I have a
"0" (zero) as a generic item number that a user can enter. After entering a
qty for a zero item number, I have an inputbox pop up to ask for an item
description. Normally the item description is inserted automatically in
D13:D90 via a formula. This range is protected.

Question, using DIM ItemDesc As String" with this variable holding the value
input via inputbox, how do I insert this value into the cell. I have the
code to do it if the sheet is not protected, but I want the sheet to remain
protected.

Thanks,
Les

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
Protected WorkSheets William Wolfe Excel Discussion (Misc queries) 1 June 1st 09 09:41 PM
Groups and Protected Worksheets - know if protected mjones Excel Discussion (Misc queries) 8 April 25th 08 07:43 PM
Protected worksheets Nell Excel Discussion (Misc queries) 1 May 30th 06 12:17 PM
Group, Outline, Protected Worksheets and Protected Workbook BEEJAY Excel Programming 0 February 13th 06 08:40 PM
Protected Worksheets Shamsul Islam Excel Programming 3 February 24th 04 03:02 PM


All times are GMT +1. The time now is 10:00 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"