Can someone tell me if there is a C# equivelent to the VBA 'with'
statement that works like this:
Set myControl = CommandBars(Pop UpToUse).Contro ls.Add(msoContr olButton,
before:=5)
With myControl
.BeginGroup = True
.Caption = "Insert Row(s)"
.OnAction = "InsertRows "
.FaceId = 295
End With
Thanks
statement that works like this:
Set myControl = CommandBars(Pop UpToUse).Contro ls.Add(msoContr olButton,
before:=5)
With myControl
.BeginGroup = True
.Caption = "Insert Row(s)"
.OnAction = "InsertRows "
.FaceId = 295
End With
Thanks
Comment