Results 1 to 4 of 4

Thread: [RESOLVED] Excel: Determining Active Cell Position

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    9

    Resolved [RESOLVED] Excel: Determining Active Cell Position

    I am writing a VB Excel Macro and I am using the following code to determine the position of the active cell.

    VB Code:
    1. Dim InitialRow As Integer
    2.     Dim InitialColumn As String
    3.  
    4.     InitialRow = ActiveCell.Row
    5.     InitialColumn = ActiveCell.Column

    The problem is ActiveCell.Column returns an integer (i.e. it returns 3 instead of C). Does anyone know a way to return a C, or to convert the 3 to a C)?

    If someone knows a function to return the full cell name (Column & Row instead of Column and Row individually), that would also work.

    The reason that this is a problem is because I want to select this cell later using the function Range(<Cell>).Select, where Cell = String & Integer
    Last edited by braabe01; Jun 1st, 2006 at 07:46 AM.

Posting Permissions

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



Click Here to Expand Forum to Full Width