View Single Post
  #10   Report Post  
Posted to microsoft.public.excel.programming
keepITcool keepITcool is offline
external usenet poster
 
Posts: 2,253
Default display correct toolbar icon on starting excel application program

yep. typo. mea culpa:

For i = 1 To 10
With .Controls.Add(Type:=msoControlButton, temporary:=True)
.Caption = "Button " & i
End With
Next




--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


ilyaskazi wrote :


there is something expected=

for i=1 to 10
.controls.add(Type:=msoControlButton,temporary:=tr ue)
.caption = "Button " & i
next

i m receiving compile error msg.

help me with editing my above given original code and post here plz.