Results 1 to 8 of 8

Code fails with error 1004

Threaded View

  1. #1
    Registered User
    Join Date
    09-22-2010
    Location
    Sugar Hill
    MS-Off Ver
    Excel 2003
    Posts
    6

    Code fails with error 1004

    Workbooks.Open originpath & basename, UpdateLinks:=0
    
    lastrow = ActiveSheet.UsedRange.Rows.Count
    
    
    MsgBox ActiveSheet.Name   'name is correct
    
    ActiveSheet.Range(Cells(1, 1), Cells(9, 1)).Copy  '<<< error 1004 application or object error at this line 
    
    Selection.Copy
    Last edited by cdjones; 09-22-2010 at 06:25 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1