Link to home
Start Free TrialLog in
Avatar of Andreas Hermle
Andreas HermleFlag for Germany

asked on

Naming Charts

Dear Experts:

below code snippet is supposed to name Charts in the following syntax:

MyChart_01
MyChart_02
MyChart_03
etc.

The 'format'-part of the code is obviously not correct. How do I have change the code so that the charts are correctly named?

With myChtObj.Chart.Parent  
           .Name = Format("MyChart_" & i + 1, "_##")
End With
        i = i + 1

Help is much appreciated. Thank you very much in advance.

Regards,  Andreas
SOLUTION
Avatar of Ingeborg Hawighorst (Microsoft MVP / EE MVE)
Ingeborg Hawighorst (Microsoft MVP / EE MVE)
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Andreas Hermle

ASKER

Hi teylyn,

thank you very much for your swift support. I am off to lunch and will get back to you afterwards.

Regards, Andreas
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Brad:

ok, great, this works just fine. Thank you very much for your professional help.
Teylyn, I am awarding 50 points to you since the syntax of the code snippet is correct. Thank you very much.

Regards, Andreas