個人記事本流量超過10萬,是8個多月前的事,這陣子以來真的非常忙碌啊~
雖然向來都是簡單用email發文,但近來根本連檢查私人email的時間都欠奉,當然更沒時間發文囉~
以前的記事有些到現在仍有參考價值,也算是長尾理論的發揮?(胡扯中)
總之翻倍了耶~真妙!
瀏覽統計(2009年7月起)
202,402
這個網站的部分內容未經考證確認、敘述完全是個人觀點,對此反感者請自行離開,恕不提供謹言慎行版本,或入口網站連結。我有大放厥詞的自由,你有不看的自由,請勿謾罵、歡迎討論~
個別列的最大列高是 409 點 (1 點大約等於 1/72 英吋)。個別儲存格的最大欄寬是 255 字元。這個值代表格式為標準字型的儲存格中可顯示的字元數目。
與 Microsoft Word 不同的是,Excel 沒有提供水平或垂直尺規,也沒有快速的方法讓您能夠以英吋為單位來度量工作表的寬度或高度。Excel 使用字元、點、和像素作為度量單位。
下表顯示點和像素轉換成英吋的大約規格。
點 像素 英吋 18 24 0.25 36 48 0.5 72 96 1 108 144 1.5 144 192 2
在工作表的欄與列中:RowHeight的單位:pointHeight的單位:pointColumnWidth的單位:以"標準字體"的0123456789這10個字元的平均值為計量單位Width的單位:pointHeight與Width可以表示某區域的總高度或寬度。ColumnWidth的單位與pixel之間的關係:假設標準字體為:宋體、字型大小12,則每個阿拉伯數字為8個pixel,加上字與列邊的距離左右各2.5個pixel,總共為13個pixel。即ColumnWidth=1換算成pixel為13。同理ColumnWidth=2換算成pixel為21。
使用下列的巨集,以公分為單位指定列高和欄的寬度。================ 以公分指定列高巨集碼 ================Sub RowHeightInCentimeters()Dim cm As Single' Get the row height in centimeters.cm = Application.InputBox("Enter Row Height in Centimeters", _"Row Height (cm)", Type:=1)' If cancel button not pressed and a value entered.If cm Then' Convert and set the row heightSelection.RowHeight = Application.CentimetersToPoints(cm)End IfEnd Sub================ 以公分指定列高巨集碼 ================使用下列的巨集,以公分為單位指定欄寬。================ 以公分指定欄寬巨集碼 ================Sub ColumnWidthInCentimeters()Dim cm As Single, points As Integer, savewidth As IntegerDim lowerwidth As Integer, upwidth As Integer, curwidth As IntegerDim Count As Integer' Turn screen updating off.Application.ScreenUpdating = False' Ask for the width in inches wanted.cm = Application.InputBox("Enter Column Width in Centimeters", _"Column Width (cm)", Type:=1)' If cancel button for the input box was pressed, exit procedure.If cm = False Then Exit Sub' Convert the inches entered to points.points = Application.CentimetersToPoints(cm)' Save the current column width setting.savewidth = ActiveCell.ColumnWidth' Set the column width to the maximum allowed.ActiveCell.ColumnWidth = 255' If the points desired is greater than the points for 255' characters...If points > ActiveCell.Width Then' Display a message box because the size specified is too' large and give the maximum allowed value.MsgBox "Width of " & cm & " is too large." & Chr(10) & _"The maximum value is " & _Format(ActiveCell.Width / 28.3464566929134, _"0.00"), vbOKOnly + vbExclamation, "Width Error"' Reset the column width back to the original.ActiveCell.ColumnWidth = savewidth' Exit the Sub.Exit SubEnd If' Set the lowerwidth and upper width variables.lowerwidth = 0upwidth = 255' Set the column width to the middle of the allowed character' range.ActiveCell.ColumnWidth = 127.5curwidth = ActiveCell.ColumnWidth' Set the count to 0 so if it can't find an exact match it won't' go on indefinitely.Count = 0' Loop as long as the cell width in is different from width' wanted and the count (iterations) of the loop is less than 20.While (ActiveCell.Width <> points) And (Count < 20)' If active cell width is less than desired cell width.If ActiveCell.Width < points Then' Reset lower width to current width.lowerwidth = curwidth' set current column width to the midpoint of curwidth' and upwidth.Selection.ColumnWidth = (curwidth + upwidth) / 2' If active cell width is greater than desired cell width.Else' Set upwidth to the curwidth.upwidth = curwidth' Set column width to the mid point of curwidth and lower' width.Selection.ColumnWidth = (curwidth + lowerwidth) / 2End If' Set curwidth to the width of the column now.curwidth = ActiveCell.ColumnWidth' Increment the count counter.Count = Count + 1WendEnd Sub================ 以公分指定欄寬巨集碼 ================