+ Reply to Thread
Results 1 to 1 of 1

VBA Incremental Column selection (weekly updated dashboard)

  1. #1
    Registered User
    Join Date
    07-23-2014
    Location
    Nijmegen, Netherland
    MS-Off Ver
    Office 2010
    Posts
    1

    VBA Incremental Column selection (weekly updated dashboard)

    I've managed to create an easy to update dashboard in Excel using VBA. It's pretty solid, but the big cheese requires I make weekly updated trend line dashboard to add to this data (single snapshot dashboard).

    What I'd like is a macro that does the following:

    Copy data from range X (e.g. Data!A1:A5) to Range Y in different sheet (e.g. Trend!B1:B5)
    And then when I run step 1 and 2 again


    Copy NEW data from range X (e.g. Data!A1:A5) to Range Y+1 in different sheet (e.g. Trend!C1:C5)

    repeat ad infinitum (each time moving one column to the right)

    What I get is that i need to define the column line as an integer and then refer to it. (e.g.

    Please Login or Register  to view this content.
    However repeating this macro does not increment i for me.


    Pretty much what I need to fix is that the line

    Please Login or Register  to view this content.
    becomes

    Please Login or Register  to view this content.
    Permanently, and repeat the next time for i = 4, i = 5 etc.

    After that for me it is easy to create a line chart from this range

    Thank you.

    edit: I had a brainfart about what might work, but no idea if it can.

    Would it be possible to do an If statement on cell Trend(1,i) to see if it is empty. If true > paste. If false then do i + 1 and repeat.
    Last edited by SebastiaanK; 07-23-2014 at 09:53 AM.

+ 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. Replies: 2
    Last Post: 04-20-2014, 01:47 PM
  2. [SOLVED] Incremental Weekly Date formula with End of month
    By sam99 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-20-2012, 08:50 AM
  3. Weekly incremental number
    By alecs81 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 11-28-2011, 03:39 PM
  4. Automating a weekly updated database in excel
    By jumpshoot16 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-17-2009, 01:50 PM
  5. Incremental cell selection in a 'for loop'
    By hstaubyn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2007, 08:59 AM

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