finding last column from a target row
Lastcolumn = newtargCell.column
"thomas donino" wrote in message
...
Sub testcol()
Set newtargCell = Range("A2")
Set newtargCell = newtargCell.End(xlRight)
Lastcolumn = newtargCell
MsgBox "Last column is" & newtargCell
End Sub
is the correct code, but doesn't work
"Jim Cone" wrote:
What is targCell ?
row2 or Column 2 ?
--
Jim Cone
Portland, Oregon USA
"thomas donino"
wrote in message
...
Set newtargcell = Range("A2")
Set newtargcell = targCell.End(xlRight)
the last produces an error, shouldnt it find the last cell to the right
of row2?
|