+ Reply to Thread
Results 1 to 4 of 4

vb components name translate

  1. #1
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    867

    vb components name translate

    Hi guys!

    Can you tell me the index of the VBProj.VBComponents("ThisWorkbook") component?
    I need to refer to that component but not by its name because the file I use, goes to some users that have MS Excel installed with another language and their Excel translate the component's name in that language so VBProj.VBComponents("ThisWorkbook") should be VBProj.VBComponents("[that-language-translation]")

    Thank you!
    .. and don't forget to have fun!
    Bogdan.

    mark SOLVED and Add Reputation if my answer pleases you

  2. #2
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    867

    Re: vb components name translate

    Nevermind guys, i've found out by myself. The indexnumber of ThisWorkbook is always 1, the indexnumber of the first worksheet is 2.

    this is how i found out:
    Please Login or Register  to view this content.
    Last edited by bulina2k; 02-12-2014 at 06:59 AM. Reason: add code

  3. #3
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: vb components name translate

    I think that ThisWorkbook may always be used as Object in code and so ThisWorkbook.Codename will return the name in current language?
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  4. #4
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    867

    Re: vb components name translate

    i'm not sure but that worth a try...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sample Translate English to Arabic Text Using MS Translate
    By pidyok in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-21-2013, 08:18 AM
  2. Please help translate the following
    By Brian in forum Excel General
    Replies: 4
    Last Post: 04-17-2006, 12:45 AM
  3. VBA - Translate VBA Line
    By ajocius in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2006, 11:50 PM

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