thanks again James but as I said in my other post. I think this level is beyond me and I'm trying to run before I can walk.
So what I'm opting for now is simply (she says 'simply' )
Take column A values (I have this in a table and it's my 1st column of table)
copy paste special to two places on my destination table on another sheet into the last available row.
Trouble is, I have a total row on my destination table so I think I need to write an if to say if there is a total row, remove and then copy and paste then add back in total row.
else no total row then copy and paste and add total row?
any advice gratefully received I've spent hours on this and think I have confused myself!
Below is a macro to adapt to your specific situation
Code:
Sub LoopTable()
Dim i As Long, j As Long
For i = 2 To Range("Table1").Rows.Count
For j = 1 To Range("Table1").Columns.Count
If Cells(i, j).Value <> "" Then
MsgBox Cells(i, j).Value
End If
Next j
Next i
End Sub
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.