You should probably ask VBA question on a Visual Basic board. While someone here may be familiar with VB code the topics are intended to be SAS related.
If you are using SAS at all I would ask why bother to do graphs in VB as the SAS software has a LOT of graphic capability.
The 2025 SAS Hackathon has begun!
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.