0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【EXCEL】アドレスを表示する関数

Posted at

やること

【EXCEL】計測機器なしでSequence Makerを楽しむ #Excel - Qiitaのようなアドレスを指定する際に使いそうなアドレスを表示する関数を作成する。

作成した関数

(入力範囲チェックはしていません。:sweat_smile:)

Function GetCellAddress(i As Integer, j As Integer) As String
    ' ワークシートのセルアドレスを取得する関数
    GetCellAddress = Cells(i, j).Address(False, False)  ' GetCellAddress(1,1) = A1
'    GetCellAddress = Cells(i, j).Address(True, False)  ' = A$1
'    GetCellAddress = Cells(i, j).Address(False, True)  ' = $A1
'    GetCellAddress = Cells(i, j).Address(True, True)   ' = $A$1
End Function

20250402_063000.jpg

関連記事

チャレンジ!EXCELの列数字から、列英字を取得する #UiPath - Qiita
Excel列番号を変換する関数 #VBA - Qiita
EXCEL VBA 自分用メモ crossfish21 #ExcelVBA - Qiita
VBAでよく使う処理まとめ #VBA - Qiita

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?