View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Thief_ Thief_ is offline
external usenet poster
 
Posts: 25
Default Why does the error pop up- can't enter command mode?

I have this code:

Sub test()
Range("A3").Select
ActiveSheet.OLEObjects.Add(ClassType:="Forms.TextB ox.1", Link:=False, _
DisplayAsIcon:=False, Left:=100.8, Top:=119.930434782609, Width:= _
204.104347826087, Height:=104.55652173913).Select

End Sub

It inserts a textbox onto a worksheet. when I step thru the code, I get to
the Add command, and get the error "Can't enter break mode at this time.".
However when i run the code F5- it works OK??

XL2002 SP2

--
|
+--Thief_
|