+ Reply to Thread
Results 1 to 3 of 3

Row & Column headings to refer to cells in VBA6

Hybrid View

  1. #1
    Registered User
    Join Date
    01-23-2009
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2000
    Posts
    31

    Row & Column headings to refer to cells in VBA6

    Hi everyone,
    suppose we have data in a worksheet arranged in a block with row and column headings.

    In excel spreadsheet it is possible to fill a formula with row and column headings ie.. formula with labels.

    is it possible to do the same with vba6, to easily access data from worksheet?
    ie instead of the usual let's say Range("B3"), how can i refer to the cell as by the row heading - Feb, and column heading - "Sales" ie Range("sales" Feb") ?


    Thanks
    Geetha

  2. #2
    Forum Contributor
    Join Date
    09-18-2008
    Location
    india
    Posts
    158

    Re: Row & Column headings to refer to cells in VBA6

    Hi Geetha,

    Please try this.

    Sub Rowandcell()
    Dim i As Long
    
    If Cells(i, 9) = "sales" Then
    Rows(i).Copy
    End If
    
    End Sub
    Regards,
    Shekar.

  3. #3
    Registered User
    Join Date
    01-23-2009
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2000
    Posts
    31

    Re: Row & Column headings to refer to cells in VBA6

    Hi Shekar,
    Thanks for your interest. but this is the usual way i operate.

    i was looking for a way to refer to a cell the way it is referred to in the spreadsheet formula with labels.

    Geetha

+ 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