+ Reply to Thread
Results 1 to 2 of 2

1004 Error w/ "Range"

  1. #1
    Registered User
    Join Date
    06-03-2009
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2003
    Posts
    5

    1004 Error w/ "Range"

    I am receiving an error with the DeBugger highlighting the last line of code below.

    I attempted Sheets("APR_ALL_STATES").Range("aprAllStatesA") &
    Worksheets("APR_ALL_STATES").Range("aprAllStatesA").Select to no avail.

    Thanks in advance.



    Dim bHold, fHold, yHold, zHold, aprAllStatesA, aprAllStatesT As Range
    Dim oBook As Workbook

    '''''GEOLOC
    Set aprAllStatesA = Range("A3")
    Set aprAllStatesT = Range("T3")

    For i = 1 To 5000

    ''''''''B-F
    Sheets("APR_ALL_STATES").Select
    Range("aprAllStatesA").Select

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: 1004 Error w/ "Range"

    Welcome to the forum, scm.

    Please take a few minutes to read the forum rules, and then edit your post to add code tags.

    In your first declaration, everything except aprAllStatesT is declared as a Variant, since the data type is not specified.

    One possible form for the last line is
    Please Login or Register  to view this content.
    Last edited by shg; 06-03-2009 at 05:19 PM.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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