+ Reply to Thread
Results 1 to 3 of 3

Determining the current row and col

  1. #1
    Registered User
    Join Date
    06-18-2004
    Posts
    11

    Determining the current row and col

    What's the VB syntax for determining the current row and current col prior to a DoubleClick?

    Thanks


    k483

  2. #2
    JE McGimpsey
    Guest

    Re: Determining the current row and col

    If you mean the cell in which the double click occurred, then one way:

    Private Sub Worksheet_BeforeDoubleClick( _
    ByVal Target As Excel.Range, Cancel As Boolean)
    With Target
    MsgBox "Address: " & .Address & vbNewLine & _
    "Row: " & .Row & vbNewLine & _
    "Column: " & .Column
    End With
    End Sub

    Put the code in the Worksheet code module.

    In article <[email protected]>,
    k483 <[email protected]> wrote:

    > What's the VB syntax for determining the current row and current col
    > prior to a DoubleClick?


  3. #3
    Gary''s Student
    Guest

    RE: Determining the current row and col

    Sub Macro1()
    i = Selection.Row
    j = Selection.Column
    MsgBox (i)
    MsgBox (j)
    End Sub

    If you have Selected a single cell
    --
    Gary's Student


    "k483" wrote:

    >
    > What's the VB syntax for determining the current row and current col
    > prior to a DoubleClick?
    >
    > Thanks
    >
    >
    > k483
    >
    >
    > --
    > k483
    > ------------------------------------------------------------------------
    > k483's Profile: http://www.excelforum.com/member.php...o&userid=10791
    > View this thread: http://www.excelforum.com/showthread...hreadid=488215
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1