Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Having trouble making shtTo be the sheet name to copy to in the If statement.
Where the names in column H are an actual sheet name, (in this case a persons name) Ted, Allen, Kelly etc. Thanks, Howard Sub Column_Check_OneRng() Dim rngB As Range Dim OneRng As Range Dim shtTo As Worksheet Application.ScreenUpdating = False Set OneRng = Sheets("Bid log").Range("A2:A" & Cells(Rows.Count, "A").End(xlUp).Row) For Each rngB In OneRng If rngB.Offset(, 3) = "D-Col Bid" Then 'set shtTo to the name in column H which is a sheet name to copy to shtTo.Range("B" & Rows.Count).End(xlUp)(2) = rngB End If Next Application.ScreenUpdating = True End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Code to copy column in sheet 1 to column in sheet 2 based on matched criteria | Excel Programming | |||
Match value from column A to column A on 2nd sheet and then copy R | Excel Programming | |||
copy cells from multiple pages to one sheet w/ if statement | Excel Worksheet Functions | |||
How to search column, copy row, and copy to another sheet in same | Excel Discussion (Misc queries) | |||
how to make one column copy from one sheet to anoth column w/o zer | Excel Discussion (Misc queries) |