+ Reply to Thread
Results 1 to 4 of 4

VB Code to give 1st and last row # in selected range

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to give 1st and last row # in selected range

    Hello:

    Please refer to attached file.
    I have lots of data from column A thru E.
    I need VB code to give me the 1st Row # and last row # of the selected range.
    Lets assume that I selected range A7:E15.
    Now running the code should give me First Row #7 and last row# 15

    Let me know if you have any questions.
    Thanks.

    Riz
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-17-2012
    Location
    New York, New York
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: VB Code to give 1st and last row # in selected range

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: VB Code to give 1st and last row # in selected range

    Or

    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to give 1st and last row # in selected range

    Hi reagan & Jie:

    Solution work..
    Thanks a lot
    Riz

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VBA code to send selected range in body of mail
    By forfiett in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-17-2014, 05:29 AM
  2. VBA Code to grab data give critiria in textbox and output data range to cell range. Help!?
    By exclusiveicon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-26-2014, 05:31 PM
  3. Replies: 2
    Last Post: 11-19-2012, 12:29 AM
  4. Macro code for auto-sorting of a selected range
    By danzing87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-03-2010, 04:19 AM
  5. VBA code to delete rows in a selected range.
    By LD2020 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-23-2009, 02:06 PM

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