+ Reply to Thread
Results 1 to 5 of 5

Select cells/ranges by using Visual Basic procedures in Excel

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

    Select cells/ranges by using Visual Basic procedures in Excel

    Hello:

    I have data in column D.
    I need a VB Code to select cell from D2:D where D2 is the first cell and D is the last active cell on column D.

    For Example, if i have data from D2:D10 then select D2:D10...

    Thanks

    Riz

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,720

    Re: Select cells/ranges by using Visual Basic procedures in Excel

    Is this what you mean?


    Please Login or Register  to view this content.

  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Select cells/ranges by using Visual Basic procedures in Excel

    Riz,

    Here's the most common way to do so:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    01-25-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Select cells/ranges by using Visual Basic procedures in Excel

    The answers above are accurate -
    This is how I use that function to make all sorts of plots for test results - column A - is always the observation number (1---- n)
    the other columns are specific values / results (numeric)
    you can plot several different series - just by adding three new additional series : as indicated in the code @
    ' Add series to plot
    Note: you will need to determine the last cell for each column that you intend to plot.


    Please Login or Register  to view this content.

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

    Re: Select cells/ranges by using Visual Basic procedures in Excel

    Hello:

    All guys are great...
    The solution I will use is from Jolivanes.

    Thanks a lot guys..

    Riz

+ 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