Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default How to make the column in the excel file as read-only?

I am handling an excel file as an input. And i want to make the 2nd column in
that file as input only. How do i make it?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default How to make the column in the excel file as read-only?

What do you mean as input only?
Do you mean that no one can enter a formula into the cell, or paste into it.

You could use an event macro and check that a change was not a formula.

As far as pasting into it -- don't know of any way to test or prevent that.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Manu" wrote in message ...
I am handling an excel file as an input. And i want to make the 2nd column in
that file as input only. How do i make it?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default How to make the column in the excel file as read-only?

By Input I mean that the column must be automatically loaded by reading any
another cell and must not allow user to alter it after that.


"David McRitchie" wrote:

What do you mean as input only?
Do you mean that no one can enter a formula into the cell, or paste into it.

You could use an event macro and check that a change was not a formula.

As far as pasting into it -- don't know of any way to test or prevent that.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Manu" wrote in message ...
I am handling an excel file as an input. And i want to make the 2nd column in
that file as input only. How do i make it?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default How to make the column in the excel file as read-only?

Hi Manu,
You might consider using Conditional Formatting to color cells that meet
you conditions for not being changed, and leave it to the user to keep out.

Otherwise, I think you might have to do something like using and Event
macro to unprotect the sheet, protect the cell, then protect the sheet.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Manu" wrote in message ...
By Input I mean that the column must be automatically loaded by reading any
another cell and must not allow user to alter it after that.


"David McRitchie" wrote:

What do you mean as input only?
Do you mean that no one can enter a formula into the cell, or paste into it.

You could use an event macro and check that a change was not a formula.

As far as pasting into it -- don't know of any way to test or prevent that.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Manu" wrote in message ...
I am handling an excel file as an input. And i want to make the 2nd column in
that file as input only. How do i make it?






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 do I make read-only file vij Excel Discussion (Misc queries) 1 July 17th 09 02:04 PM
How do I make an Excel 2007 file read-only? happycat Excel Discussion (Misc queries) 2 December 19th 08 03:49 PM
Make excel open file without Read Only dialog Saul Margolis Excel Discussion (Misc queries) 2 March 16th 05 03:30 PM
How do I make a file read only unless a password is supplied? Tim Excel Discussion (Misc queries) 2 January 12th 05 10:48 PM
Make a file read only Michael Singmin Excel Programming 1 November 3rd 03 07:45 PM


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

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"