Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Shared Workbooks and activecell

I have a shared workbook on which I want to perform a VBA routine: On worksheet change, I want to lock the activcell. For some reason, it appears that the activecell property will not work in the shared workbook. Is this true for all shared workbooks? Can anyone suggest a workaround? (I don't want to lock the entire selection - I only want to lock the cell that changed.

Thank you
Gerry Maher
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Shared Workbooks and activecell

ActiveCell operates at Application level i.e. its full designation i
:-
Application.ActiveCell
The Application in this case is Excel.

It refers to the cell that is currently active in the worksheet that i
itself active. Presumably you are using :-
ActiveCell.Locked = True

Presumably you need to be more specific. To lock a cell we use the sam
procedure as changing any other cell format property, something lik
:-

Workbooks("Book1.xls").Worksheets("Sheet1").Range( "A1").Locked = Tru

--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Shared Workbooks and activecell

I'm guessing that you want to unprotect the worksheet, lock the cell, and
reprotect the worksheet.

If I'm close, then the bad news is you can't change sheet protection in a shared
workbook.

xl2002 and xl2003 offer finer control of what users can do on protected
worksheets--but xl2002 won't let you change the "lockedness" of a cell in a
protected sheet. (don't have xl2003 to check.)



Gerry Maher wrote:

I have a shared workbook on which I want to perform a VBA routine: On worksheet change, I want to lock the activcell. For some reason, it appears that the activecell property will not work in the shared workbook. Is this true for all shared workbooks? Can anyone suggest a workaround? (I don't want to lock the entire selection - I only want to lock the cell that changed.)

Thank you,
Gerry Maher


--

Dave Peterson

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
Shared workbooks Kris Excel Discussion (Misc queries) 2 March 23rd 10 12:36 AM
Shared Workbooks-shared headers and footers Sherry New Users to Excel 1 June 13th 08 03:59 PM
If activecell.column = variable then activecell,offset (0,1) Battykoda via OfficeKB.com Excel Discussion (Misc queries) 1 October 2nd 07 08:05 PM
Shared Workbooks Vali Excel Worksheet Functions 0 August 23rd 06 07:41 PM
suddenly my excel workbooks are "shared workbooks" Maggie's mom Excel Discussion (Misc queries) 1 August 28th 05 09:20 PM


All times are GMT +1. The time now is 09:04 AM.

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"