By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,665 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Getting the name of the currently opened (that has a focus on it) form

100+
P: 176
Hello users and experts.

I would like to know if it is possible , and if so, how to get the name of the currently opened form. I'm building a function that would sort any form that has a focus on it, and need the form name to be insereted into a variable to be passed to that function.

I have been searching the net with a method, with no success so far...

A help would me welcomed.
Michael.
May 10 '07 #1
Share this Question
Share on Google+
2 Replies


puppydogbuddy
Expert 100+
P: 1,923
Dim strActiveFormName As String


strActiveFormName = Screen.ActiveForm.Name
May 10 '07 #2

NeoPa
Expert Mod 15k+
P: 31,342
Dim strActiveFormName As String


strActiveFormName = Screen.ActiveForm.Name
Interesting. I wouldn't have known that. Let us know how you get on Michael :)
May 15 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.