• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

application error/object error

daveyc3000

New Member
Code:
 Set wbcsv = Workbooks.Open("G:\TREASURY\CDIC\" & "CDICPosNeg" & showyear & showmonth & showdate & " - Copy.xlsx")

   
   With wbcsv.Worksheets("POS")
       
       

         finalrow = Cells(Rows.Count, 1).End(x1up).Row
      Range("A1:A" & finalrow).Resize(1, 9).Copy
     
  
     
      End With

I get an an application defined error or object error at "finalrow"...shows a value of "0" in debug screen
 
Last edited:
Hi ,

It is not x1up , but xlup , where the second character is the letter l ( lower case L ) , not the digit 1.

Narayan
 
Back
Top