Results 1 to 4 of 4

Thread: [RESOLVED] update from 2003... Mid() function

  1. #1

    Thread Starter
    Hyperactive Member pgag45's Avatar
    Join Date
    Mar 2007
    Location
    Colorado
    Posts
    262

    Resolved [RESOLVED] update from 2003... Mid() function

    Hey all,

    Just updating a 2003 workbook to 2007 ... and running into something I can't figure out.

    I have the exact same references in both my 2003 and 2007 version, but for some reason the following code won't compile "with object/library missing" (as I said all the same references though)...

    temp = Mid$(FileName, x, 1)

    so I tried
    temp = Mid(FileName, x, 1)

    doesn't work either..

    any suggestions?

    thanks much

  2. #2

    Thread Starter
    Hyperactive Member pgag45's Avatar
    Join Date
    Mar 2007
    Location
    Colorado
    Posts
    262

    Re: update from 2003... Mid() function

    why I say same refs... obviously the excel and vba object libraries went to 12.0 from 11.0.

    did the Mid function change or something?

  3. #3

    Thread Starter
    Hyperactive Member pgag45's Avatar
    Join Date
    Mar 2007
    Location
    Colorado
    Posts
    262

    Re: update from 2003... Mid() function

    turns out for other stuff like UCase() and other string manip

    guess my question is what library does the string manipulation come from?

  4. #4

    Thread Starter
    Hyperactive Member pgag45's Avatar
    Join Date
    Mar 2007
    Location
    Colorado
    Posts
    262

    Re: update from 2003... Mid() function

    meh figured it out...

    had to put VBA.Mid(...

    or VBA.UCase(...

Posting Permissions

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



Click Here to Expand Forum to Full Width