+ Reply to Thread
Results 1 to 5 of 5

getting the adress on the last row

  1. #1
    alvin Kuiper
    Guest

    getting the adress on the last row

    Hi
    can i with
    Set myRange2 = Range(Range("a1"), Range("a1").End(xlDown))

    Get the last rows adress
    like if the last post i have is in A11 then
    get the adress A11

    Reagrds
    Alvin


  2. #2
    C. Roenbaugh
    Guest

    Re: getting the adress on the last row

    Try this

    set myRange2 = Range(Range("a1"), Range("a1").End(xlDown))

    With myRange2
    i = .rows.count
    j = .myRange2.cells(i,0).address
    end with


  3. #3
    alvin Kuiper
    Guest

    RE: getting the adress on the last row

    Sorry
    Have found out how

    Alvin


    "alvin Kuiper" wrote:

    > Hi
    > can i with
    > Set myRange2 = Range(Range("a1"), Range("a1").End(xlDown))
    >
    > Get the last rows adress
    > like if the last post i have is in A11 then
    > get the adress A11
    >
    > Reagrds
    > Alvin
    >


  4. #4
    Toppers
    Guest

    RE: getting the adress on the last row

    Set rng = Cells(Rows.Count, "A").End(xlUp)
    MsgBox rng.Address

    "alvin Kuiper" wrote:

    > Hi
    > can i with
    > Set myRange2 = Range(Range("a1"), Range("a1").End(xlDown))
    >
    > Get the last rows adress
    > like if the last post i have is in A11 then
    > get the adress A11
    >
    > Reagrds
    > Alvin
    >


  5. #5
    Gary''s Student
    Guest

    RE: getting the adress on the last row

    To display the horizontal and vertical bounds on a range:


    Sub Macro1()
    Dim s As String
    Set myRange2 = Range(Range("a1"), Range("a1").End(xlDown))
    s = myRange2.Address
    MsgBox (s)
    With myRange2
    nLastRow = .Rows.Count + .Row - 1
    nLastColumn = .Columns.Count + .Column - 1
    nFirstRow = .Row
    nFirstColumn = .Column
    End With
    MsgBox ("first row " & nFirstRow)
    MsgBox ("last row " & nLastRow)
    MsgBox ("first column " & nFirstColumn)
    MsgBox ("last column " & nLastColumn)
    End Sub

    --
    Gary's Student


    "Toppers" wrote:

    > Set rng = Cells(Rows.Count, "A").End(xlUp)
    > MsgBox rng.Address
    >
    > "alvin Kuiper" wrote:
    >
    > > Hi
    > > can i with
    > > Set myRange2 = Range(Range("a1"), Range("a1").End(xlDown))
    > >
    > > Get the last rows adress
    > > like if the last post i have is in A11 then
    > > get the adress A11
    > >
    > > Reagrds
    > > Alvin
    > >


+ 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