R/T 1004 Error

J

Jim May

I'm sure this is elementary, but I'm still at this stage.
Can someone point out my problem?

Sub Macro1()
'
' Macro1 Macro
' Macro recorded 7/6/2006 by Jim May
'

'
Dim lcol As Integer
ActiveCell.Rows("1:1").EntireRow.Insert
ActiveCell.Offset(1, 0).Select
lcol = Cells(ActiveCell.Row, Columns.Count).End(xlLeft).Column <<
R/T error Here
MsgBox lcol

' Set rng = Range(Cells(ActiveCell.Row, 1), Cells(ActiveCell, Row,
256))

End Sub
 
B

Bernie Deitrick

Jim,

Use End(xlToLeft) rather than End(xlLeft)

HTH,
Bernie
MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top