I would like to get some help with following 2 question:
First,
I have Sheet1 which loops and gets different values from website for cells
B68, B69, B67, A61, D85 and B73, I would like to write VBA to copy these values in Sheet2 in order
A1, B1, C1, D1, E1, F1
but with my current code if Sheet1 any cell is empty it will shift copied cell (up(End(xlUP), I need to create with every set of data next row, regardless of value, even some copied cells are empty...
Second,
Add condition that every time D85 in Sheet1 is empty then it will copy value from cell D86, regardles the value of D86 ...
DoEvents
'Copy to Another sheet
With Worksheets("Sheet2")
.Range("A" & Rows.Count).End(xlUp).Offset(1, 0) = ws.Range("B68")
.Range("B" & Rows.Count).End(xlUp).Offset(1, 0) = ws.Range("B69")
.Range("C" & Rows.Count).End(xlUp).Offset(1, 0) = ws.Range("B67")
.Range("D" & Rows.Count).End(xlUp).Offset(1, 0) = ws.Range("A61")
.Range("E" & Rows.Count).End(xlUp).Offset(1, 0) = ws.Range("D85")
.Range("F" & Rows.Count).End(xlUp).Offset(1, 0) = ws.Range("B73")
End With