Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Auto Fit on Row Height

I have 2 worksheets in a workbook which are filled in by other users using a
selection of drop down lists and vlookups etc. and I want to be able to
automatically have the row height selected by the data entered. I have been
looking through previous discussions and found the following entry which
works a treat for what I am doing, however if I protect the worksheets then
this no longer works any suggestions. There are no meged cells in these
worksheets

Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
Cells.EntireRow.AutoFit
Application.EnableEvents = True

Thanks
--
Dragonette
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default Auto Fit on Row Height

are you getting run-time error '1004' on your macro?
did you tick to enable Format row in protect sheet options?

"dragons_lair" wrote:

I have 2 worksheets in a workbook which are filled in by other users using a
selection of drop down lists and vlookups etc. and I want to be able to
automatically have the row height selected by the data entered. I have been
looking through previous discussions and found the following entry which
works a treat for what I am doing, however if I protect the worksheets then
this no longer works any suggestions. There are no meged cells in these
worksheets

Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
Cells.EntireRow.AutoFit
Application.EnableEvents = True

Thanks
--
Dragonette

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Auto Fit on Row Height

No I am not getting a runtime error I left an "end Sub" off in my query.
And no I hadn't enabled the "format row" in the protection sheet, but I have
now and it is working perfectly thank you very much
--
Dragonette


"eksh" wrote:

are you getting run-time error '1004' on your macro?
did you tick to enable Format row in protect sheet options?

"dragons_lair" wrote:

I have 2 worksheets in a workbook which are filled in by other users using a
selection of drop down lists and vlookups etc. and I want to be able to
automatically have the row height selected by the data entered. I have been
looking through previous discussions and found the following entry which
works a treat for what I am doing, however if I protect the worksheets then
this no longer works any suggestions. There are no meged cells in these
worksheets

Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
Cells.EntireRow.AutoFit
Application.EnableEvents = True

Thanks
--
Dragonette

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
Row height will not auto format gladfelterk Excel Worksheet Functions 0 May 13th 09 04:18 PM
AUTO ROW HEIGHT manutt Excel Worksheet Functions 2 January 11th 09 12:45 AM
Row Height - Auto-Fit Bajillian Excel Discussion (Misc queries) 1 September 11th 08 02:13 PM
The auto fit row height function Boomer Excel Discussion (Misc queries) 2 June 13th 06 07:36 PM
Row height auto roundup sunflower Excel Discussion (Misc queries) 0 March 10th 06 02:30 AM


All times are GMT +1. The time now is 04:10 PM.

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"