Skip to content

Instantly share code, notes, and snippets.

@smeghead
Last active December 6, 2022 02:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smeghead/e43605f2d459704a413fe864f4b3ef99 to your computer and use it in GitHub Desktop.
Save smeghead/e43605f2d459704a413fe864f4b3ef99 to your computer and use it in GitHub Desktop.
行の高さを設定するマクロ
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