Results 1 to 19 of 19

Stupid Input Box Error 2015

Threaded View

  1. #14
    Registered User
    Join Date
    04-29-2011
    Location
    islip, ny
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Stupid Input Box Error 2015

    With the above code I get "Type Mismatch" on this line:

    For I = 1 To Worksheets(Val(prelimorfinal)).Range("A" & Rows.Count).End(xlUp)
    I tried changing the variable Dim to a couple of things but all was ... fruitless. I'm sure you picked Long for a reason

    When I remove Val() it switches to subscript out of range. End xl up has a value of -4162, with rows.count having a value of 1048576. So I have an idea of what that may mean in the above line
    Last edited by tomn13; 11-05-2012 at 09:41 AM. Reason: added more diagnostic information

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