Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 216
Default Protect Statement

Hi.

I have a program written in Excel 97, that uses the
following statement:

Sheets("Loan").Protect UserInterfaceOnly:=True

This works correctly in that it doesn't allow the user to
type values into cells, but it does allow the macros to
change the values.

Note that this Excel 97 macro is working even though I
have Excel 2002.

My problem is that when I creat a new workbook and try to
use the exact same statement, it does not
work. "UserInterfaceOnly" is not one of the available
arguments.

Could someone shed some light on this?

Thanks,
Mike.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Protect Statement

The UserInterfaceOnly argument applies only to individual worksheets and not
to workbooks.

--

Vasant


"Mike" wrote in message
...
Hi.

I have a program written in Excel 97, that uses the
following statement:

Sheets("Loan").Protect UserInterfaceOnly:=True

This works correctly in that it doesn't allow the user to
type values into cells, but it does allow the macros to
change the values.

Note that this Excel 97 macro is working even though I
have Excel 2002.

My problem is that when I creat a new workbook and try to
use the exact same statement, it does not
work. "UserInterfaceOnly" is not one of the available
arguments.

Could someone shed some light on this?

Thanks,
Mike.



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
Reconcile Bank statement & Credit card statement & accounting data Bklynhyc Excel Worksheet Functions 0 October 7th 09 09:07 PM
Protect IF statement AND allow data entry stilton Excel Worksheet Functions 1 July 5th 06 11:10 PM
Protect IF statement AND allow data entry stilton Excel Worksheet Functions 0 July 5th 06 09:53 PM
Protect Workbook Vs Protect Sheet Poor_pakistani New Users to Excel 4 May 25th 06 02:06 PM
Can I protect columns w/in a "List" using Protect Sheet? Diane Excel Discussion (Misc queries) 0 May 10th 06 03:30 PM


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