Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Makro for å sette kurvefarge på en serie i en graf

0 views
Skip to first unread message

einar v

unread,
Jun 29, 2010, 8:47:59 AM6/29/10
to
Prøver å lage en makro for å sette kurvefarge på en serie og tilordne
denne makroen til en menyknapp.
Alt funker greit bortsett fra en ting: Hvordan hente resultatet av
fargevalget!

Noen som kan gi et tips?


Sub Kurvefarge()
If TypeName(Selection) <> "Series" Then
ok = MsgBox("No series selected", vbOKOnly)
Else
Dim s As Series
Set s = Selection

Application.CommandBars("Formatting").Controls("&Fyllfarge").Execute
Dim ColorIndex As Integer
ColorIndex = ???? HVORDAN FINNE RESULTATET AV VALGET
OVENFOR ???
With s
.Border.ColorIndex = ColorIndex
.MarkerBackgroundColorIndex = .Border.ColorIndex
.MarkerForegroundColorIndex = .Border.ColorIndex
End With
End If
End Sub

0 new messages