Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Check value on another sheet
Thanks for taking the time to read my question.
I have 2 sheets and am on the first one. The Second one "qcust" has my data on it and I want to go through it row by row until there is no data left. Why can't I do this? It gives me an application error Do Until Worksheets("qcust").Cells(TheRow, TheCol) = "" Here is the full code. Sub MergeAndPrint() Dim TheRow As Integer TheRow = 2 Worksheets("qcust").Select Do Until Worksheets("qcust").Cells(TheRow, TheCol) = "" Range("D3") = Sheets("qcust").Cells(TheRow, 2).Value Range("D4") = Sheets("qcust").Cells(TheRow, 3).Value Range("D8") = Sheets("qcust").Cells(TheRow, 1).Value TheRow = TheRow + 1 Loop MsgBox "Complete" End Sub Thanks, Brad |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Check Activesheet for chart sheet or work sheet | Charts and Charting in Excel | |||
Check for Sheet | Excel Programming | |||
Check if the first sheet is the selected sheet | Excel Programming | |||
Enable check box in protected sheet + group check boxes | Excel Discussion (Misc queries) | |||
how to use sumif function to check date in 1 sheet is < 2 sheet | Excel Worksheet Functions |