Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

Change Dynamics Window Name with VBA

Posted on by 405

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

  • U079310 Profile Picture
    U079310 405 on at
    Re: Re: Change Dynamics Window Name with VBA

    Thanks so much for your reply.  Yes I was running my .caption code in the wrong place.  It now works fine.

    Rick

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Change Dynamics Window Name with VBA

    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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Change Dynamics Window Name with VBA
    Well, it's that simple. Use Modifier to rename the Window Title. Once done, give access to the "Modified" form in the "Alternate/Modified Forms and Reports".

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans