Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default inheritance module

I've a the same form in Dutch and in French. There is an Access
database with all the users with their language preference. How can I
depending on the language of the person call a form in Dutch OR
French. Don't won't to program 2 times the form but do it with a
module or something like that.

Any help is welcome.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 252
Default inheritance module

Does this work for you?

If you are willing to create a copy of your UserForm and Rename the forms:

Then
Create two UserForms named:
UserFormDutch
UserFormFrench

Assuming you are able to query the db and get the language for the User,
assign the Language to a Public variable, say Lang.

Then

Sub OpenUserForm()
UserForm & Lang.Show
End Sub


"@ndy" wrote:

I've a the same form in Dutch and in French. There is an Access
database with all the users with their language preference. How can I
depending on the language of the person call a form in Dutch OR
French. Don't won't to program 2 times the form but do it with a
module or something like that.

Any help is welcome.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CLASS MODULE & SIMPLE MODULE FARAZ QURESHI Excel Discussion (Misc queries) 1 September 7th 07 09:32 AM
code in module A to not execute a Worksheet_SelectionChange sub of another module Jack Sons Excel Discussion (Misc queries) 4 December 11th 05 11:52 PM
Inheritance of references MrT Excel Programming 1 January 11th 05 11:32 AM
arrays - module to module mike Excel Programming 3 February 25th 04 08:56 PM
Variable from a sheet module in a class module in XL XP hglamy[_2_] Excel Programming 2 October 14th 03 05:48 PM


All times are GMT +1. The time now is 08:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"