+ Reply to Thread
Results 1 to 1 of 1

Using a variable to select data for plotting

  1. #1
    Registered User
    Join Date
    07-22-2010
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    58

    Using a variable to select data for plotting

    Hey all,

    I am creating a macro that would access a number of workbooks and plot similar graphs in all of them. I am looking to use the bit of code generated by Excel, that I have included below, in my Macro.

    Please Login or Register  to view this content.
    My problem now is that the number of rows differ in each workbook. So I have added the following to count the number of rows:

    Please Login or Register  to view this content.

    Now I would like to use the variable lr in the code that creates the plot (to replace 64), but I am unsure of how to do this.

    Any help would be really appreciated.

    Thanks in advance

    Lovi
    Last edited by lovi; 11-22-2012 at 09:23 AM. Reason: Inappropriate title + More descritipn

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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