Skip to Content
author's profile photo Former Member
Former Member

Login language in BEx with VBA

Hello Experts!

I want to translate texts I write in the footer by VBA. Looks like this:

<i>

MyTable1.PageSetup.LeftFooter = "&""Arial,Standard""&8" & <my text in langu 1>.</i>

Now, i want to have the text depending on the login language.

I tried this:

<i>Dim myConnection As Object

Dim myLangu As String

Set myConnection = Run("SAPBEX.XLA!SAPBEXgetConnection")

myLangu = myConnection.Language</i>

But myLangu is always empty.

Does anyone know why or maybe a better way to do this?

Best Regards,

Peter

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 24, 2006 at 12:02 PM

    Hi Peter,

    It seems that if the user opens the workbook from the SAP GUI (RRMX), that the entries will be blank.

    Another way to determine the user's language preference is to read it from the System Registry.

    See this thread ...

    sapbexgetconnection-doesn't-return-proper-values-w

    Hope it helps.

    - Pete

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.