+ Reply to Thread
Results 1 to 2 of 2

Applying "HLOOKUP" or "VLOOKUP" to a macro

  1. #1
    Registered User
    Join Date
    06-11-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    39

    Applying "HLOOKUP" or "VLOOKUP" to a macro

    I realized after posting this that hlookup/vlookup may not be the correct solution. Please read below.


    Background:

    I have a workbook. In the workbook I have a sheet. In the sheet I have a archive of data (starting at A200). The archive of data I have it listed out by year, then month. So, 2012 in A201, then from A202 to BC 202, I have January to February (with 4 cells proceeding each month's title). Below the month titles are apx. 197 blank rows where data should be going; then start a new year (i.e. 2012, 2014... to 2022).

    At the top of the sheet from A5 to E150, I have an area to manually paste in the data (from another workbook). Above that area I have a template for selecting the Prior Month and Current Year using lists. From these lists, the data below (in A5 to E150) should be pasted into the correct month/year in the archive below, as mentioned above.

    Question:

    How can I create a function in VBA that will paste the data from A5 to E150 into the correct archive area, based on the month/year specified by the user in the drop down lists?

    Thanks!
    Last edited by ExcelFinWizzard; 06-11-2012 at 11:46 AM.

  2. #2
    Registered User
    Join Date
    06-11-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Applying "HLOOKUP" or "VLOOKUP" to a macro

    Edited original post...

+ 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