Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-26-2014, 04:31 AM
andytheanimal andytheanimal is offline Chart formatting VBA Windows 7 32bit Chart formatting VBA Office 2010 32bit
Novice
Chart formatting VBA
 
Join Date: Oct 2014
Posts: 10
andytheanimal is on a distinguished road
Default Chart formatting VBA

I don't want to save as a chart template but instead want to assign a macro to something that once a chart is highlighted, will remove the border line and set a shadow.

I've recorded the macro and the VBA reads as below, but obviously references 'Chart 1'. Could you advise how I can amend the macro so that it refers to the chart that I've clicked in to focus please?
ie, click to focus on a chart and then I run the macro?

Thanks



Sub Prep_Chart()
'
' Prep_Chart Macro
'
'
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveSheet.Shapes("Chart 1").Line.Visible = msoFalse
ActiveSheet.Shapes("Chart 1").Shadow.Type = msoShadow21
End Sub
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chart formatting VBA Formatting an Org. Chart (SmartArt) to fit in a page DSS90 PowerPoint 1 10-08-2014 07:12 PM
Chart formatting VBA Formatting an Org. Chart (SmartArt) to fit in a page DSS90 Drawing and Graphics 3 10-08-2014 08:15 AM
Chart formatting VBA MS Project 2013 Reports: ACWP in Timephased Line Chart does not match ACWP in Column Chart or Table billcary Project 3 09-22-2014 07:10 AM
Gantt chart bar formatting summ vs recurr task Intruder Project 1 02-02-2014 08:19 AM
Converting manual chart to bar chart? aligahk06 Excel 0 07-03-2010 12:23 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:47 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft