Consulting

Results 1 to 3 of 3

Thread: Get selected range address w/o column name

  1. #1

    Question Get selected range address w/o column name

    I want to know range of rows selected without its column name

    Suppose range selection is= E9:E23 then
    I want the output.. msgbox1= 9:23, msgbox2= 9 to 23

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by ilyaskazi
    I want to know range of rows selected without its column name

    Suppose range selection is= E9:E23 then
    I want the output.. msgbox1= 9:23, msgbox2= 9 to 23
    Dim rng
    Set rng = Range("E2:E23")
        MsgBox rng.Row & ":" & rng(rng.Count).Row

  3. #3

Posting Permissions

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