+ Reply to Thread
Results 1 to 2 of 2

Dynamic Table with scrollbar using Offset function

  1. #1
    Registered User
    Join Date
    08-01-2013
    Location
    DallasTX
    MS-Off Ver
    Excel 2007
    Posts
    40

    Dynamic Table with scrollbar using Offset function

    Hello,

    I've been stumped for a couple of days now. I'm VERY new to VBA (Youtube'd taught) and I'm creating a dashboard. I'm stumped on my first table...

    Here is what I'm trying to Accomplish: (This is a recruiting activity dashboard)
    Table of all "Active" Reqs. (Rows will increase daily) with only 4 out of 30 columns.
    Keep this table in a 10row long box on the dash board.


    What I have already done:
    created an advanced filter from the raw data to capture only the active reqs.
    Created an offset function on the dashboard sheet
    Use a form control scrollbar to move the rows

    Problem:
    I can get it to work when I know exactly how long the range will be,
    but that range will increase daily. How can I get the offset function to work so that it doesn't show "0"'s for blanks?
    Or can I do this in VBA? How?

    Thanks for your help!!

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Dynamic Table with scrollbar using Offset function

    The Max value should be the count of all rows, including header row minus number of rows in the table. Since the data will change, the number of rows will increase. Therefore you need select a cell that will show the total number of rows e.g =COUNTA(C:C)-10. Now, make a right click on the sheet and select View Code. There you will see two lines of code. Now inter between these tow lines following code

    Please Login or Register  to view this content.
    Make sure the ScrollBar name is the same and the Range("B") refers to the cell on there worksheet where you have COUNTA formula.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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: 06-14-2012, 01:44 PM
  2. Replies: 4
    Last Post: 06-12-2012, 04:13 PM
  3. Dynamic Chart - Offset function
    By jantonio in forum Excel General
    Replies: 2
    Last Post: 10-17-2011, 02:49 PM
  4. Offset function and Dynamic Ranges
    By SandyLACA in forum Excel General
    Replies: 2
    Last Post: 08-02-2006, 06:07 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