Chance1234
IS-IT--Management
Hi,
im running this code from powerpoint and cant see where it is going wrong, please can someone have alook for us
Dim ChtNew
WrkShtNew.Name = chkd(Y)
Set ChtNew = Wrkbknew.Charts.Add
With ChtNew
.ChartType = xlColumnClustered
.SetSourceData Source:=Sheets(chkd(Y)).Range("A1:AW2", PlotBy:=xlRows
.Location Where:=xlLocationAsObject, Name:=chkd(Y)
With ChtNew.Axes(xlcatergory).TickLabels
With .Font
.Name = "Arial"
.FontStyle = "Regular"
.Size = 8
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
.Background = xlAutomatic
End With
End With
.Alignment = xlCenter
.Offset = 100
.Orientation = xlUpward
With .PlotArea.Border
.Weight = xlThin
.LineStyle = xlNone
End With
With .PlotArea.Interior
.Interior.ColorIndex = xlNone
End With
.HasAxis(xlCategory, xlPrimary) = True
.HasAxis(xlValue, xlPrimary) = True
.HasLegend = False
End With
Y = Y + 1
thanks
Chance
im running this code from powerpoint and cant see where it is going wrong, please can someone have alook for us
Dim ChtNew
WrkShtNew.Name = chkd(Y)
Set ChtNew = Wrkbknew.Charts.Add
With ChtNew
.ChartType = xlColumnClustered
.SetSourceData Source:=Sheets(chkd(Y)).Range("A1:AW2", PlotBy:=xlRows
.Location Where:=xlLocationAsObject, Name:=chkd(Y)
With ChtNew.Axes(xlcatergory).TickLabels
With .Font
.Name = "Arial"
.FontStyle = "Regular"
.Size = 8
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
.Background = xlAutomatic
End With
End With
.Alignment = xlCenter
.Offset = 100
.Orientation = xlUpward
With .PlotArea.Border
.Weight = xlThin
.LineStyle = xlNone
End With
With .PlotArea.Interior
.Interior.ColorIndex = xlNone
End With
.HasAxis(xlCategory, xlPrimary) = True
.HasAxis(xlValue, xlPrimary) = True
.HasLegend = False
End With
Y = Y + 1
thanks
Chance