+ Reply to Thread
Results 1 to 6 of 6

find lastrow and chart last 200 enteries

  1. #1
    Registered User
    Join Date
    06-04-2015
    Location
    CO
    MS-Off Ver
    2010
    Posts
    19

    find lastrow and chart last 200 enteries

    hello
    I have a wb that contains a shet of all my data and then when a certain sheet is selected i have a comand that:
    Copys All data
    Pastes all data in selected sheet
    Filters specific data for that selected sheet.

    I need to be able to chart the last 200 enteries on a third sheet.
    I have tried multiple formulas but it appears that the program is still recognizing that there is data in the empty cells that have been filtered out.
    Im not sure if i should use a formula or a comand.

    Please let me know if you can help
    I can provide a sample wb if needed
    Thankyou!

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: find lastrow and chart last 200 enteries

    Yes you should attach your sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.
    Remember to desensitize the data.

    ViewPic
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  3. #3
    Registered User
    Join Date
    06-04-2015
    Location
    CO
    MS-Off Ver
    2010
    Posts
    19

    Re: find lastrow and chart last 200 enteries

    Attached is sampl wb.

    Sample workbook.xlsm

  4. #4
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: find lastrow and chart last 200 enteries

    So this code will clear what's in sheet3, then it will filter sheet2 and paste the results to sheet3. Sheet3 will not have any blanks.
    Let me know how that works for you.

    FYI the selection change event that you chose to run this code triggers when you select a cell other than the one that is already selected. If A2 is already selected you would have to click into another cell and then back into A2 to get it to run. If this is not the behavior you want then there's probably a better way to run the code, a button or another event.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-04-2015
    Location
    CO
    MS-Off Ver
    2010
    Posts
    19

    Re: find lastrow and chart last 200 enteries

    Thank you so much skywriter.

    I know thats what will happen.
    When i created it i imagined that the user will only go to the directory page if you want to change locations (cell selection), if not you can just click the sheet names at the bottom.

    The only reason i have the hyperlink directory is so the program knows which sheets the user is trying to look at, and hide the rest.

    But thanks again this works perfectly!

  6. #6
    Registered User
    Join Date
    06-04-2015
    Location
    CO
    MS-Off Ver
    2010
    Posts
    19

    Re: find lastrow and chart last 200 enteries

    Is there anyway i can add a line that tells it to not show any blank rows?
    when the data is pasted onto sheet 3 there is over a million blank rows that get loaded, which is creating some lagtime.

    Thank you

+ 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] Find the LastRow
    By SIMBAtheCAT in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2014, 11:45 AM
  2. Replies: 3
    Last Post: 04-02-2014, 02:44 PM
  3. Find lastrow and delete rows
    By tableq in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-25-2012, 03:31 PM
  4. Chart how to find lastrow?
    By Craigm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-06-2006, 11:19 AM
  5. [SOLVED] how do I find duplicate text enteries in Excel
    By Cambronze in forum Excel General
    Replies: 1
    Last Post: 08-04-2005, 04:05 AM

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