LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Junior Member
 
Posts: 1
Smile Auto fit text in linked cells of a protected worksheet

Help !!!! new to codes

I have a spreasheet where I need a certain range of linked cells (within another spreasheet) to autofit I used the following code which I found on google and it worked, but as soon as I protect the spreadsheet and I have to protect the cells containing the links as the formulas asked to be locked it doesnt work I get an error code

Private Sub Worksheet_Calculate()
Me.Rows.AutoFit
'or be specific
Me.Rows("1:33").AutoFit
End Sub


I need the autofit to work in the following locked and protected cells

F11 / F12 / F13 / F14
F16 / F17 / F18 / F19 /F20
F22 / F23 / F24
F26

Can anyone help ?

Thanks

Lucy
 
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
Sorting non-linked cells in a linked worksheet Gary Excel Discussion (Misc queries) 1 October 25th 08 03:38 AM
Auto fit text in cell of a protected worksheet Suzanne Excel Discussion (Misc queries) 3 July 8th 08 07:12 PM
Edit text format in non-protected cells in protected worksheet Bonnie Excel Discussion (Misc queries) 2 April 19th 08 04:48 PM
Auto Filter with Protected Worksheet JohnGuts Excel Worksheet Functions 4 April 24th 06 09:14 AM
how to i use auto filter on a protected worksheet shirley Excel Programming 1 March 2nd 04 11:26 AM


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