Thread: [Solved] simple change chart in VBA
View Single Post
 
Old 07-05-2012, 10:13 AM
LKnomad LKnomad is offline Windows XP Office 2007
Novice
 
Join Date: Jul 2012
Posts: 8
LKnomad is on a distinguished road
Question simple change chart in VBA

I am trying to make a simple change to a single selected chart in a word document using VBA. I cannot seem to make this work. Any help appreciated.

The code that I have been trying looks like this:

Code:
 
Sub ChangePieChart()
 
Dim objshape as chart
  
 objshape.Height = 250 
     
End Sub
This should be so simple but I cannot figure it out. I get a variety of errors when I try different options.
Reply With Quote