An implementation of Visual Basic that is built into Microsoft products.
Thank you for reaching out.
When you use Refresh, it only updates the data shown inside the existing shapes, like name or title. It does not redraw the org chart structure or change reporting relationships. So if someone moves to a different manager in Excel, the org chart layout will not change just by refreshing. To update the reporting structure, you normally need to run the Org Chart import/wizard again, because that is what rebuilds the hierarchy based on the “reports to” data. There isn’t a simple VBA method that directly “clicks” the Import button. That button is not exposed as a normal VBA function. However, people achieve the same result by running the Org Chart Wizard through VBA and passing the required details (Excel file, name field, manager field, etc.) as parameters. This effectively rebuilds the org chart structure using code.
- References
- Refreshing imported data (explains Refresh updates data from source): Refresh imported data
- Explanation that org chart wizard doesn’t update reporting relationships via Refresh and needs rerun for structure changes: Org chart refresh doesn’t change structure
Please let us know if you require any further assistance, we’re happy to help. If you found this information useful, kindly mark this as "Accept Answer". So that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.