Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > VBScript
|
VBScript For questions and discussions related to VBScript.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VBScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old July 14th, 2011, 12:28 AM
Registered User
 
Join Date: Jul 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Protect a cell in excel using vbscript

hi,

How to lock a particular cell from editing in excel using vbscript . Tried in C# it works but not able to make it to work in vbscript. Please help.Tried the below code

objExcel.Cells.Locked = false
objExcel.Range("A2:B2").Locked = true
currentWorkSheet.Protect "Test",0,0

It doesnt work...
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get Excel Cell color populate .NET Framework 2.0 2 March 3rd, 2014 04:25 AM
Excel functions in vbscript blrao VBScript 0 April 12th, 2008 04:46 AM
Protect / Unprotect Excel 97 - VBA Code - jlpazv Excel VBA 2 November 30th, 2007 10:54 AM
c# and Excel cell values hardboiled C# 0 November 16th, 2007 11:12 AM
unprotect excel in vbscript emmydotnet VBScript 5 March 12th, 2007 02:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.