#1   Report Post  
Posted to microsoft.public.excel.misc
Gull
 
Posts: n/a
Default VB CODE

My problem is I have some value in the first row

suppose A1 has value NAME
B1 has value ADDRESS
C1 has value PHONE

I want to write a VB code which tells .. If i try to change the
value in these cells then there should be a message telling " these
cells are non editable" the the old values like NAME should be retained
in that cell

PLz help me

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default VB CODE

Why not protect the sheet with these 3 cells locked.

First select all cells and unlock them (CellsProtection and uncheck the
Locked box)
Select A1:C1, and lock them
Then protect the sheet (ToolsProtectWorksheet)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Gull" wrote in message
oups.com...
My problem is I have some value in the first row

suppose A1 has value NAME
B1 has value ADDRESS
C1 has value PHONE

I want to write a VB code which tells .. If i try to change the
value in these cells then there should be a message telling " these
cells are non editable" the the old values like NAME should be retained
in that cell

PLz help me



  #3   Report Post  
Posted to microsoft.public.excel.misc
Barb Reinhardt
 
Posts: n/a
Default VB CODE

Why don't you protect those cells.

This is one option of how you can do it:

To unlock all cells, select all cells in the worksheet and
FORMAT CELLS - PROTECTION - Uncheck LOCKED.

Then select the cells that you want protected and FORMAT -CELLS-
PROTECTION - Check LOCKED

Then TOOLS - PROTECTION
I'd uncheck SELECT LOCKED CELLS.
If there are other things that your users need to be able to do, make
sure you allow it on this sheet.

"Gull" wrote in message
oups.com...
My problem is I have some value in the first row

suppose A1 has value NAME
B1 has value ADDRESS
C1 has value PHONE

I want to write a VB code which tells .. If i try to change the
value in these cells then there should be a message telling " these
cells are non editable" the the old values like NAME should be retained
in that cell

PLz help me



  #4   Report Post  
Posted to microsoft.public.excel.misc
wAyne
 
Posts: n/a
Default VB CODE

I have asimilar problem,

I don't want user to be able to change the cell - but they can be allowed to
delete the row... UI sm using Excel 2000 -- is this possible?

wAyne_

"Barb Reinhardt" wrote:

Why don't you protect those cells.

This is one option of how you can do it:

To unlock all cells, select all cells in the worksheet and
FORMAT CELLS - PROTECTION - Uncheck LOCKED.

Then select the cells that you want protected and FORMAT -CELLS-
PROTECTION - Check LOCKED

Then TOOLS - PROTECTION
I'd uncheck SELECT LOCKED CELLS.
If there are other things that your users need to be able to do, make
sure you allow it on this sheet.

"Gull" wrote in message
oups.com...
My problem is I have some value in the first row

suppose A1 has value NAME
B1 has value ADDRESS
C1 has value PHONE

I want to write a VB code which tells .. If i try to change the
value in these cells then there should be a message telling " these
cells are non editable" the the old values like NAME should be retained
in that cell

PLz help me




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
Change case...help please Terry Excel Worksheet Functions 14 October 2nd 05 12:29 PM
Macro for changing text to Proper Case JPriest Excel Worksheet Functions 3 August 8th 05 09:31 PM
Using other workbooks.. DavidMunday Excel Worksheet Functions 2 July 1st 05 07:35 AM
Make Change Case in Excel a format rather than formula Kevin Excel Worksheet Functions 1 March 18th 05 08:53 PM
Opening a file with code without a set file name jenkinspat Excel Discussion (Misc queries) 1 March 4th 05 10:50 AM


All times are GMT +1. The time now is 02:47 AM.

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"