excel vba - Run-time error while running VBA code for moving overlapping chart data labels -
referring chris nielsen's answer in link: link
i'm totally novice in vba coding. searching solution moving overlapping data labels work save me huge amount of time.
but when running 1st code i.e. movinglabels() problem occurs in following line.
set ch = sh.chartobjects("chart 1").chart would appreciate if can help. in advance.
try this:
set ch = activesheet.chartobjects(1).chart it should work. refers first chart in activesheet. if have n charts, delete of them one, refer it.
Comments
Post a Comment