Consulting

Results 1 to 3 of 3

Thread: Row Number of Cell

  1. #1
    VBAX Regular
    Joined
    Jun 2012
    Posts
    45
    Location

    Row Number of Cell

    I got this code who do I find the RowNumber of rDest variable and put it in this code.



    [vba]
    Set rDest = Sheets(5).Range("I" & Rows.Count).End(xlUp).Offset(1, 0)
    rDest.Resize(1, 1).Value = "=CV" & RowNumber of rDest
    [/vba]
    This code is moving same data from same sheet in same from same row in a different column for that I used formula in each cell

    =CV1
    =CV2
    =CV3
    =CV4

    Thanks

  2. #2
    Mac Moderator VBAX Guru mikerickson's Avatar
    Joined
    May 2007
    Location
    Davis CA
    Posts
    2,778
    The .Row property of a range object will give you the row number of the upper left cell of that object.

    When I started writing VBA, I would spend forever going through the Object Browser looking at the properties of an object until I found something that I could use.

  3. #3
    VBAX Regular
    Joined
    Jun 2012
    Posts
    45
    Location
    Thanks, I did not knew about object browser.
    I was using row.count and getting confused.

Posting Permissions

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