Results 1 to 13 of 13

Array loop producing error "Run time error '1004'"

Threaded View

jeskit Array loop producing error... 05-06-2011, 03:52 AM
snb Re: Array loop producing... 05-06-2011, 05:15 AM
jeskit Re: Array loop producing... 05-06-2011, 05:54 AM
snb Re: Array loop producing... 05-06-2011, 06:20 AM
jeskit Re: Array loop producing... 05-06-2011, 06:25 AM
  1. #1
    Valued Forum Contributor
    Join Date
    01-10-2011
    Location
    swindon, england
    MS-Off Ver
    Excel 2010
    Posts
    317

    Thumbs up Array loop producing error "Run time error '1004'"

    Hi

    I have created the array loop below, which should go through the array and put each letter within in the place of the column letter within the lines of code.

     For Each sht2 In Array("F") 'Loop through the vlookup cells and autofill the rest of the columns
           PPNew.Sheets("InputRefapd").Select: Range(sht3 & "1").Select
            Selection.AutoFill Destination:=Range(sht3 & "1:" & sht3 & "30"), Type:=xlFillDefault
    Next
    However when i run it i get an error of "Method 'range' of 'object' '_global' failed"

    Does anyone know why i get this error?

    Thanks

    Jeskit
    Last edited by jeskit; 05-06-2011 at 08:57 AM.

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