+ Reply to Thread
Results 1 to 3 of 3

VBA Lookup function

  1. #1
    Registered User
    Join Date
    04-01-2005
    Posts
    19

    VBA Lookup function

    Hi all,

    I'm looking to create a macro that will take data from an input sheet, and paste it into a cell in another worksheet, based on criteria specified in sheet1.

    Specifically in the attached example, the macro would copy the data in cells C8:C10 of sheet 1, then paste them into sheet 2 based on the data specified in cell B3 i.e. it would paste them into the column headed Mar-09. I intend to make this cell a drop down, so that the user can then select the next reporting month and run the macro again to paste the data into the Apr-09 column.

    Sure this is possible, but having played around with several attempts and examples I've found on this forum, I still cannot crack it.

    Regards,

    Steve
    Attached Files Attached Files
    Last edited by stevepain; 01-08-2009 at 07:01 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    04-01-2005
    Posts
    19
    Thats great VBA Noob - thanks very much for the code.
    Would be interested to know what each piece of code is doing, as there are some elements that I am not necessrily familiar with in there! Would help me adapt it for my final solution which is going to involve a bit more data than this exampbe sheet over approx 60 months.

    Thanks again,

    Steve
    Last edited by stevepain; 01-08-2009 at 07:11 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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