+ Reply to Thread
Results 1 to 1 of 1

VBA assistance - Dim monthFound As Range (For multiple cells)

  1. #1
    Registered User
    Join Date
    06-06-2008
    Posts
    89

    VBA assistance - Dim monthFound As Range (For multiple cells)

    Hello,

    I have what should be a very simple query for someone with a bit more VBA knowledge than me. I've had a good go at trying to fix the problem myself, and have got 99% of the finished product, but just need a final push over the line.

    I have a sickness database which is automatically populated from a template sheet when the macro is run, but at present it pulls a number of days and puts them all into the corresponding month regardless of whether the month rolls into the next one. Eg 61 days all in the April column rather than 30 days in April and 31 days in May.

    It took a while, and it's probably a very long-winded work around, but I have managed to get a formula to produce the number of working days for each month into the template rather than the number of days in total.

    So what I need is for instead of the macro to pull across a total number of days from one cell to either Apr, May, Jun etc for the correct person, I need it to pull across the range of 12 cells into the 12 months, but making sure it still adds the days onto any that may already be there, and doesn't paste over the top.

    In short, before tinkering the macro pulled D21 (on the Template sheet) into the database depending on name and start date.
    Now I want it to pull I21:T21 into the database for the correct person.

    I've attached the Template and Database for anyone willing to have a look.

    Many thanks,
    Phil
    Attached Files Attached Files
    Last edited by philwilliams80; 03-02-2012 at 07:07 AM.

+ 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