Last active
December 6, 2022 02:42
-
-
Save smeghead/e43605f2d459704a413fe864f4b3ef99 to your computer and use it in GitHub Desktop.
行の高さを設定するマクロ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub 高さ() | |
' | |
' 高さ Macro | |
' 行の高さを、カレントセルの高さに設定する。 | |
' | |
' Keyboard Shortcut: Ctrl+Shift+H | |
' | |
Dim rowNo | |
rowNo = ActiveCell.Row | |
Dim height | |
height = Cells(rowNo, 1) | |
Debug.Print height | |
Rows("" & rowNo & ":" & rowNo).Select | |
Selection.RowHeight = height | |
ActiveCell.Offset(1, 0).Select | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment