+ Reply to Thread
Results 1 to 3 of 3

VBA "TypeName" international issues

  1. #1

    VBA "TypeName" international issues

    Does anyone know whether the TypeName VBA function will return strings
    in english with a non english version of windows.

    for example, would the following work on a non english configured
    version of Windows\Excel.

    if TypeName(vr_abc)="Worksheet" then
    do something....
    end if

    Many thanks
    John


  2. #2
    JE McGimpsey
    Guest

    Re: VBA "TypeName" international issues

    Yes it will, but you can also do it more directly using If TypeOf:


    If TypeOf vr_abc Is Worksheet Then


    In article <[email protected]>,
    [email protected] wrote:

    > Does anyone know whether the TypeName VBA function will return strings
    > in english with a non english version of windows.
    >
    > for example, would the following work on a non english configured
    > version of Windows\Excel.
    >
    > if TypeName(vr_abc)="Worksheet" then
    > do something....
    > end if


  3. #3
    Bob Phillips
    Guest

    Re: VBA "TypeName" international issues

    John,

    I think VBA is US English all the way through, so that should work.

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    <[email protected]> wrote in message
    news:[email protected]...
    > Does anyone know whether the TypeName VBA function will return strings
    > in english with a non english version of windows.
    >
    > for example, would the following work on a non english configured
    > version of Windows\Excel.
    >
    > if TypeName(vr_abc)="Worksheet" then
    > do something....
    > end if
    >
    > Many thanks
    > John
    >




+ Reply to Thread

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