ExcelVBA@Workshop
HOME > Excel VBA サンプル集 > セルの位置を取得する
セルの位置を取得する

サンプルソース

' 左からの距離
Msgbox Range("B10").Left

' 上からの距離
Msgbox Range("B10").Top

解説

Leftで左からの距離、Topで上からの距離を取得します。



関連する内容



スポンサードリンク



Copyright (C) 2006-2008 ExcelVBA@Workshop All rights reserved.