Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Integrate VBA to QM2
#6
Hello ,
I have another macro that I can't figure out how to integrate it into QM2.

Code:
Copy      Help
Sub AutoFill()

     Dim LastRow As Long
     LastRow = Columns(1).Find("*", SearchDirection:=xlPrevious, SearchOrder:=xlByRows).Row
     ActiveCell.AutoFill Destination:=Range(ActiveCell, Cells(LastRow, ActiveCell.Column))

End Sub

When I tried to add property to Columns(1) function it tells me "Expected 0 arguments, not 1.";


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)