Looking for a method to change the displayed window/form name in Dynamics using VBA if possible. Have tried changing the value of field CAPTION but get an object not available error. If cannot be changed with VBA is there another suggeted method ?
Thanks, Rick
*This post is locked for comments
Thanks so much for your reply. Yes I was running my .caption code in the wrong place. It now works fine.
Rick
Hi,
You can definitely change it with VBA.
You are getting the 'object not available' error because the window is not open at the time you assigned the property.
To get around it you can add this line to the Window_AfterActivate() event:
Caption=<title>
Where <title> is the title of the window you desire.
Ruel
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156