+ Reply to Thread
Results 1 to 8 of 8

VBA Extract Macro

  1. #1
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    VBA Extract Macro

    Hello, I wonder whether someone could help me please.

    I'm using the script below to copy data from one sheet to another.

    Please Login or Register  to view this content.
    The script looks at column E of the' Source' sheet for two values, either "Enhancements" or "OVH". When it finds these value inthe range, it then creates a unique distinct list and copies the data to column of the "Enhancements" (Destination) sheet. There is also additonal functionality which sums a 'Manhour' figure and places this under the relevant monthly column heading.

    What I'd like to do is change this, so that if the value "OVH is found it copies the information to the "Overheads" sheet rather than the "Enhancements", but still keep the rest of the code intact, because it works without any problem.

    However, despite spending several days on this, I've been unable to find a solution.

    I just wondered whether someone could look at this please and offer some guidance on how I may be able to achieve this.

    Many thanks

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA Extract Macro

    It is difficult to comment with out seeing how the code works within the actual sheet, so this code is Untested.

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    Re: VBA Extract Macro

    Hi @AB33, thank you very much for taking the time to reply to my post, and for the solution. The code runs without any errors, but unfortunately it doesn't quite produce the desired effect. I'd like, if at all possible, for when the script picks up the value "Enhancements" the information is paste into the "Enhancements" sheet and if the value of "OVH" is found, the paste into the "Overheads" sheet, rather than it's current functionality where everything is paste into the "Overheads" sheet. Many thanks and kind regards

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA Extract Macro

    Please attach the sample where the code was initially used. Go to advance then attachment.

  5. #5
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    Re: VBA Extract Macro

    Hi @AB33, thank you very much for taking the time to come back to me with this. Unfortuantely, because I'm at work, I'm unable to upload the file, but I will do this on my return home this evening if that's ok. Kind Regards

  6. #6
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    Re: VBA Extract Macro

    Hi, as promised, please find the link to my file here.

    https://www.dropbox.com/s/jpftgi9gup...al%20Test2.xls

    Many thanks and kind regards

  7. #7
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA Extract Macro

    Hi Hobbiton73,

    Try the attached.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    Re: VBA Extract Macro

    Hi @AB33, thank you very much for taking the time to put this together, I really can't express my thanks enough, I'm in awe!

    The code works beautifully, and I really can't tell you the pressure it's lifted from my shoulders.

    All the very best and kind regards
    Last edited by hobbiton73; 08-17-2013 at 10:12 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. [SOLVED] Pausing A Macro (allow user to extract data) aAnd Resume Macro
    By jbumps in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2013, 01:59 PM
  2. macro to extract data
    By kt090678 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2011, 04:55 PM
  3. Macro to extract Data
    By dandavis1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-07-2008, 07:33 AM
  4. How to Extract Data using Macro?
    By da80th in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2007, 06:39 AM
  5. Macro to extract data
    By Bill A in forum Excel General
    Replies: 3
    Last Post: 02-15-2006, 08:35 AM

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