+ Reply to Thread
Results 1 to 4 of 4

VB Macro to display data

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

    VB Macro to display data

    Hello:

    Please refer to attachced sheet.

    Sheet2 is the employee ClockIn-Clockout info
    Each day will have 4 columns and data will start from Cell O46

    I would choose the date from drop down list in cell C3.

    I need a VB macro to display the data for a chosen date.

    I have manually pasted the data for 4/3/2013.

    Please let me know if any questions.

    Thanks in advance fro your help.


    Riz
    Attached Files Attached Files
    Last edited by rizmomin; 04-30-2013 at 12:35 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: VB Macro to display data

    Here's a formula solution. I put the formula results next to your manual ones. So in J4
    =INDEX(Sheet2!$O$47:$AL$83,ROW(A1),MATCH($C$3,Sheet2!$O$47:$AL$47,0)+COLUMN(A1)-1)
    copied across and down. You may need to reformat some cells the first time.
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

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

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: VB Macro to display data

    Hi Riz

    Do you want to do this only using macro, or formulas are also ok for you?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

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

    Re: VB Macro to display data

    Hello:

    Thank you ChemistB...the formula would work Great.

    Love it

    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