473,385 Members | 1,753 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Protection for Columns

I would like to know how to set protection on specific
columns. I know we can protect Workbook and Worksheet, but
I have no idea how I can protect specific columns. Thank
you.
Nov 20 '05 #1
4 1196
"M-Hero" <an*******@discussions.microsoft.com> schrieb
I would like to know how to set protection on specific
columns. I know we can protect Workbook and Worksheet, but
I have no idea how I can protect specific columns. Thank
you.


Would you please explain us what you are talking about? Workbook and
Worksheet sounds like Excel terms. Are you using VB.NET (that's what this
group is all about) to control Excel? If not, please turn to an Excel group.
If yes, the question doesn't seem to be specific to VB.NET, it's more a
question on the Excel object model. Please have a look at it first. If
you've got problems creating the VB.NET code to do what you want, feel free
to let us know.
--
Armin

Nov 20 '05 #2
Cor
Hi Mr Hero,
I would like to know how to set protection on specific
columns. I know we can protect Workbook and Worksheet, but
I have no idea how I can protect specific columns. Thank
you.


I saw this answer in another thread, is this what you mean, I don't know if
it works for you?

To lock specific columns; check this out.

Sub lock_columns()
Cells.Select
Selection.Locked = False
Selection.FormulaHidden = False
Columns("B:C").Select
Selection.Locked = True
Selection.FormulaHidden = False
ActiveSheet.Protect DrawingObjects:=True, _
Contents:=True, Scenarios:=True
End Sub

Cor
Nov 20 '05 #3
* "M-Hero" <an*******@discussions.microsoft.com> scripsit:
I would like to know how to set protection on specific
columns. I know we can protect Workbook and Worksheet, but
I have no idea how I can protect specific columns. Thank
you.


<news://news.microsoft.com/microsoft.public.excel.programming>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
Hi Cor,

ROFLMAO.

Excellent irony. ;-))

Regards,
Fergus
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Howard | last post by:
I am currently looking at the various packages that are available for software protection. I have a particular question that I'd welcome your feedback on. Background info: I work for a company...
0
by: SoftComplete Development | last post by:
SoftComplete Development Updates EXECryptor to v. 2.1.20 Software piracy! Cracked serial numbers! Thousands of commercial products are posted on the warez sites and become available to all who...
12
by: Mr Beaton | last post by:
Hey all, I'm far from new to programming, neither ASP nor SQL. However, my SQL knowhow is apparently wanting... I have allways validated user input to pieces prior to integrating it into a...
7
by: Boni | last post by:
Dear all, in order to protect my assembly component from decompilation I implemented following schema: I created mixed mode C++ project wich has managed cProxy class and unmanaged cMemLoader....
2
by: M-Hero | last post by:
Would anyone happen to know how to protect a specific column? I know how to protect Workbook and Worksheet, but Column.
9
by: John | last post by:
Hi, I would like to protect my software from copying. What are best tools for it (hardware protection is not an option), do you have some reccomendation for protection or third party software...
19
by: John | last post by:
I would like to use some third party software for copy protection, software that prevents from copy paste program to another computer (not obfuscator). I am looking for some good solution (hardware...
5
by: Iain | last post by:
Hi All I have the code below (Using Delphi 2006 Developer to create an C# ASP.Net page to update a simple database table. When the page is fired I get the following error message ...
0
by: dba | last post by:
Hi folks, I would just like to share with you SQL CodeSecure, a newly released database protection and auditing tool from SqlLabs: SQL CodeSecure provides ultimate protection from unauthorized...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.