web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Change Dynamics Window Name with VBA

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Community Member Profile Picture
    on at
    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".
  • Community Member Profile Picture
    on at

    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

  • U079310 Profile Picture
    405 on at

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

    Rick

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans