Results 1 to 14 of 14

Copy and Paste Macro

Threaded View

  1. #1
    Registered User
    Join Date
    11-27-2011
    Location
    New York, New York
    MS-Off Ver
    Excel 2003
    Posts
    17

    Copy and Paste Macro

    Hello Everyone. I am a VBA newbie and need help with a particular issue.

    For work I need to design a macro that can help calculate overhead fees.

    I download a raw report and I need to copy a particular secition from the report and paste it onto another page where I will do my calculations.

    A simple example to clarify what I need to do is lets say I have a spread sheet with three columns (see attachment). With the first column as fruits, second column as countries and third column as numbers.


    apple india 343
    oranges mexico 324
    bananas china 765
    peaches canada 8678
    cherries canada 4234
    mangoes canada 545
    kiwi canada 2313
    apples india 13
    strawberries japan 4545


    I need a macro that would copy the section containing the fruits country and number for the entire section when the country is canada. Basically a macro that will stop at canada, select from peaches, down to the number 2313 and paste this box onto a another page.

    Then I need my macro to caluclate 51% of the numbers of this secition.

    This is a simple example of what I need to do, basically when I download the raw data there will be a spreadsheet full of ledger details, however the section I need to copy to calculate overhead charges will always have the same word "F12BAPRS" in one of the colums. I just need to copy this section and multiple the amounts by 51% to calculate overhead charges.

    If anyone can assist me with my issue I would be more than grateful!
    Attached Files Attached Files
    Last edited by dinesababu1; 07-09-2012 at 11:59 PM.

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