Hello,
What is the VBA code for selecting a chart to work on? For instance, the code for selecting a worksheet named "Dashboard" is:
Sheets("Dashboard").Select
What is the code for selecting a particular chart?
Thanks.
Hello,
What is the VBA code for selecting a chart to work on? For instance, the code for selecting a worksheet named "Dashboard" is:
Sheets("Dashboard").Select
What is the code for selecting a particular chart?
Thanks.
Hi,
Best way to learn is use the VBA recorder.
Record selecting the chart and see what code it produces
VBA Noob
_________________________________________
![]()
![]()
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
i've tried that an i have the code for it---but i need to refer to a specific graph every time I run a macro. the line of code i have written will not let me refer to the name of the chart every time i run the macro.
You cna also use this code:
ActiveSheet.ChartObjects("Chart1").Activate
or
ActiveSheet.ChartObjects(1).Activate
Regards,
Antonio
Try
Change chart 2 to your chart name![]()
Please Login or Register to view this content.
VBA Noob
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks