Hi,
Very new to VBA, and have been searching but not finding enough to cobble together what I am looking for. My end goal is to parse the data on the attached sheet and copy the building, room number, and date (data in columns a through c) to the appropriate sheet (titled after the column header in D-DH) if there is a 1 present in said row and column. Therefore, with the attached sheet, the resulting workbook would list:
builda 4002T 12-Jun
builda 4006T 12-Jun
builda 3002T 12-Jun
builda 3010T 12-Jun
in the Doorframepaintinc sheet.
I found the following code from http://www.ozgrid.com/forum/showthread.php?t=31461"]this thread that would do it for one column at a time, I was wondering if there was a way to automate it further or if I needed to create 109 for loops. I'm also trying to figure out how to replace the cell.EntireRow.copy with just the first three columns of said row if I need to go this way.
Macro3()
Dim rngA Range
Dim cell as Range
Set rngA = Range("D1", Range("D65536").End(xlUp))
For Each cell rngA
cell.Value = "1" Then
cell.EntireRow.Copy
Windows("Results.xls").Activate
Sheets("Doorframepaintinc").Range("A65536").End(xlUp).Offset(1, 0).Select
ActiveSheet.Paste
Next cell
End Sub
Display More
Thanks for any help you can give me.