Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default how do you change a row height in a protected worksheet

I have written a program and I want the end user to be
able to change certain row heights and certain column
widths.
My VB program works fine untill I protect the work sheet.
Is there any way that I can change some of the row heights
and column widths via the program without having to unlock
the worksheet
Thanks
Vince
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default how do you change a row height in a protected worksheet

Hi Vince,

If you protect your sheet in code, setting the UserInterfaceOnly argument
to true, you will be able to manipulate the row heights in your code.

Note, however, that the value of this argument is not persistant and, on
re-opening the workbook, the sheet will be protected with the default
(false) value set for this argument.

A solution to this is to protect the worksheet when the workbook is opened,
for example:

Sub Auto_Open
Dim WS As Worksheet

Set WS = Worksheets("Sheet1")

WS.Protect Password:="hi", userinterfaceonly:=True
End Sub

---
Regards,
Norman

"Vince" wrote in message
...
I have written a program and I want the end user to be
able to change certain row heights and certain column
widths.
My VB program works fine untill I protect the work sheet.
Is there any way that I can change some of the row heights
and column widths via the program without having to unlock
the worksheet
Thanks
Vince



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default how do you change a row height in a protected worksheet

Hi Vince,

I omitted to add:

Alternatively,In your code you can unprotect, adjust your row heights and
then re-protect your sheet.

---
Regards
Norman



"Vince" wrote in message
...
I have written a program and I want the end user to be
able to change certain row heights and certain column
widths.
My VB program works fine untill I protect the work sheet.
Is there any way that I can change some of the row heights
and column widths via the program without having to unlock
the worksheet
Thanks
Vince



  #4   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default how do you change a row height in a protected worksheet

Thank you Norman
I like this method better as it will give the operator to
adjust the rows that I will allow within the program.

Vince



-----Original Message-----
Hi Vince,

I omitted to add:

Alternatively,In your code you can unprotect, adjust your

row heights and
then re-protect your sheet.

---
Regards
Norman



"Vince" wrote in

message
...
I have written a program and I want the end user to be
able to change certain row heights and certain column
widths.
My VB program works fine untill I protect the work

sheet.
Is there any way that I can change some of the row

heights
and column widths via the program without having to

unlock
the worksheet
Thanks
Vince



.

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
Protected worksheet allowed to change ONLY font color quest_hell Excel Discussion (Misc queries) 0 February 18th 10 02:06 AM
Change font color in protected worksheet Dyanna Excel Worksheet Functions 2 November 21st 07 01:43 PM
Can I change the tab order in a protected worksheet? sciservice Excel Discussion (Misc queries) 1 May 17th 05 06:42 PM
On a excel protected worksheet, how do I change the tab order? vikgarden Excel Worksheet Functions 3 April 7th 05 04:52 PM
How to change the tab order for a protected worksheet dvonj Excel Worksheet Functions 2 March 18th 05 08:23 PM


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