how do I fix the column width?

G

Guest

I have an excel sheet wherein I collect data from about 10 persons.
To maintain formattin all over the huge excel sheet, I would like to freeze
the column width. Other should not be able to change the column width even if
they try.
What should I do?
 
D

Dave Peterson

You can protect the worksheet (tools|protection|protect sheet).

But there are lots of things that can't be done on a protected worksheet.
You'll want to test it first.
 
C

Corey

Highlight the columns and click:
Tools-Protection-Protect worksheet.
Use p/w if you like.

Corey....
 
D

David Biddulph

Kazuki said:
I have an excel sheet wherein I collect data from about 10 persons.
To maintain formattin all over the huge excel sheet, I would like to
freeze
the column width. Other should not be able to change the column width even
if
they try.
What should I do?

Tools/ Protection/ Protect worksheet
Select options appropriately
 
D

Don Guillett

one way would be to put the if statement below into some worksheet event
such as calculate or change. Then when the column width is modified it will
revert to 20. If you want it to fire all the time just use

Columns(4).ColumnWidth = 20
==========
To add right click sheet tab>view code>left window worksheet>right window
select event>put in code

Private Sub Worksheet_Calculate()
If Columns(4).ColumnWidth < 20 Then Columns(4).ColumnWidth = 20

End Sub

Private Sub Worksheet_Change(ByVal Target As Range)
If Columns(4).ColumnWidth < 20 Then Columns(4).ColumnWidth = 20
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top