Excel VBA 質問スレ Part14at TECH
Excel VBA 質問スレ Part14 - 暇つぶし2ch847:デフォルトの名無しさん
10/03/26 21:14:29
>>843
やりたいのはこんな感じ カナ?カナ?
Dim Sh As Worksheet
Dim r As Range
Dim X1 As Integer
Dim X2 As Integer
Dim Y1 As Integer
Dim Y2 As Integer

Set Sh = ActiveSheet

For Each r In Sh.Range("A1:D9")
  If r.Value <> "" Then
    With r
      X1 = .Left
      Y1 = .Top
      X2 = X1 + .Width
      Y2 = Y1
    End With
    With Sh.Shapes.AddLine(X1, Y1, X2, Y2).Line
      .BeginArrowheadStyle = msoArrowheadTriangle
      .EndArrowheadStyle = msoArrowheadTriangle
    End With
  End If
Next


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch