Results 1 to 6 of 6

VBA Question- copying specific range if condition is met

Threaded View

dnblnd VBA Question- copying... 02-08-2013, 11:28 PM
:) Sixthsense :) Re: VBA Question- copying... 02-09-2013, 12:07 AM
dnblnd Re: VBA Question- copying... 02-09-2013, 01:08 AM
:) Sixthsense :) Re: VBA Question- copying... 02-09-2013, 01:49 AM
dnblnd Re: VBA Question- copying... 02-09-2013, 11:42 AM
:) Sixthsense :) Re: VBA Question- copying... 02-09-2013, 12:03 PM
  1. #1
    Registered User
    Join Date
    02-08-2013
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    3

    VBA Question- copying specific range if condition is met

    Alright, so I am fairly comfortable with basic macros (I use record feature often to make what I need), but I have run into something I am going to need some help on.

    I have attached a spreadsheet. The top row is the quarter that the date in row 3 is in.

    I would like to make something that will take a look at cell a2 in the "Report" sheet, and go through the columns in the "Data" sheet. If the column's first number matches a2 in "Report", then copy everything below it to the "Report" sheet (does not matter where, really). If the value at the top does not match the reference, then go to the cell at the top of the next column and repeat.

    Essentially, if "Report"!a2 is 2, then all data in the "Data" sheet under a 2 in the first row will appear in the "Report" sheet.

    Hopefully this is an easy one for you experts. Thank you all very much, and I look forward to being able to give back one day.
    Attached Files Attached Files

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