Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Macro: How to avoid cell value editing ?


Put a button on the sheet & protect everything else.
mind that protection possibilities depends on excel versions.

Worksheets("x").Protect UserInterfaceOnly:=True

will work on all versions (since xl97?) and
allows your code to work but the user can't do a lot of harm.


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Terence" wrote:

Hi,

My macro retrieves data from SQL server and data is placed
on the worksheet. However, I don't want users change /
delete data on the worksheet after data is retrieved from
SQL server. e.g. data is returned to column A of the
worksheet.
Is there anything that I can work on my macro coding so
that users cannot change / delete the data of column A?
Thanks.

Terence


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Macro: How to avoid cell value editing ?

Thanks a lot!!

-----Original Message-----

Put a button on the sheet & protect everything else.
mind that protection possibilities depends on excel

versions.

Worksheets("x").Protect UserInterfaceOnly:=True

will work on all versions (since xl97?) and
allows your code to work but the user can't do a lot of

harm.


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Terence" wrote:

Hi,

My macro retrieves data from SQL server and data is

placed
on the worksheet. However, I don't want users change /
delete data on the worksheet after data is retrieved

from
SQL server. e.g. data is returned to column A of the
worksheet.
Is there anything that I can work on my macro coding so
that users cannot change / delete the data of column A?
Thanks.

Terence


.

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 to avoid excel pop-up in macro Francesco Magagnino Excel Discussion (Misc queries) 3 September 8th 08 11:30 AM
Editing Macro heitorfjr Excel Discussion (Misc queries) 1 January 15th 06 07:02 PM
in cell editing macro ynissel Excel Discussion (Misc queries) 2 July 27th 05 07:28 PM
How can avoid the security Macro message ... John B Excel Discussion (Misc queries) 1 March 29th 05 07:43 PM
Cell Editing Macro styler Excel Programming 1 July 31st 03 06:48 PM


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