Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Patricia Shannon
 
Posts: n/a
Default Row height to compare with non-Excel files

I'm putting this in the New Users section, because it will probably be
obvious to experienced users, but when I finally figured it out, it was of
enormous help to me.

I have a bunch of spreadsheets that are being used as a database. When
comparing the data in the spreadsheets to the original data, I had a hard
time because the spreadsheet rows didn't correspond in size to the original
data. I tried adjusting the font sizes in both, but couldn't get the rows to
line up.
I finally found that the thing to do is to set the Height of the spreadsheet
row to the font size of the other file. Then the font size can be 1 less for
ease of reading it. I found that the Distributed orientation worked best.
Note that font sizes are specified as the height in points. There are 72
points in an inch.
This is part of a macro that sets up my files for reviewing.

Sub D1FormatForReview()
'
' Macro recorded 3/29/2006 by Patricia Shannon

Cells.Select
With Selection
With .Font
.Name = "Courier New"
.Size = D1FontSize - 1
End With
.RowHeight = D1FontSize
.VerticalAlignment = xlDistributed
.ShrinkToFit = False
End With

Cells.Select
Selection.Columns.AutoFit

Columns("B:D").Select
Selection.EntireColumn.Hidden = True

End Sub

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
Excel files in separate program windows Jason Dove Excel Discussion (Misc queries) 27 October 24th 08 07:58 PM
excel 2003 slow when working with excel 2000 files michel Excel Discussion (Misc queries) 0 November 28th 05 03:40 PM
Can I embed or link multiple .pdf files into or to an excel file? GrubbyG Excel Discussion (Misc queries) 1 October 3rd 05 08:40 PM
Excel Files Acting Weird Anat Excel Discussion (Misc queries) 0 March 29th 05 03:07 AM
Why do my links break when I burn multiple Excel files to a CD? akrr-rasmussen Excel Worksheet Functions 1 November 17th 04 02:39 AM


All times are GMT +1. The time now is 01:13 AM.

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"