Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default unlock a cell

Hi,
What is the correct VB syntax to unlock a cell?
Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default unlock a cell

with the sheet unprotected

activeCell.Locked = False
--
Regards,
Tom Ogilvy

"Jean-Paul De WInter" wrote in message
...
Hi,
What is the correct VB syntax to unlock a cell?
Thanks




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default unlock a cell

Thanks for the reply...
However, I need to unlock cells A1 to A3 so what will be the syntax then?
Greets
JP
"Tom Ogilvy" schreef in bericht
...
with the sheet unprotected

activeCell.Locked = False
--
Regards,
Tom Ogilvy

"Jean-Paul De WInter" wrote in message
...
Hi,
What is the correct VB syntax to unlock a cell?
Thanks






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default unlock a cell

Range("A1:A3").Locked = False

the sheet has to be unprotected when you do this.
--
Regards,
Tom Ogilvy

"Jean-Paul De WInter" wrote in message
...
Thanks for the reply...
However, I need to unlock cells A1 to A3 so what will be the syntax then?
Greets
JP
"Tom Ogilvy" schreef in bericht
...
with the sheet unprotected

activeCell.Locked = False
--
Regards,
Tom Ogilvy

"Jean-Paul De WInter" wrote in message
...
Hi,
What is the correct VB syntax to unlock a cell?
Thanks








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
How can I Unlock cell/worksheet? Lyn Excel Discussion (Misc queries) 5 January 19th 10 07:24 PM
Dynamic unlock a cell (under condition) MyVi Excel Discussion (Misc queries) 5 November 9th 06 07:01 PM
Dynamic unlock a cell (under condition) MyVi Excel Worksheet Functions 0 November 7th 06 08:42 PM
how do i password protect an .xls file? how do i unlock it for automation. e.g. want to unlock and access a .xls from another .xls macro. Daniel Excel Worksheet Functions 1 June 24th 05 02:59 PM
Lock / Unlock Cell Terence Excel Programming 1 September 30th 03 02:44 PM


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