Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default some problems calling components :(


people for example i try to show component name,

but when i try to call a component i get error


-----------------------------
.gggg.AddItem ("1")
MsgBox .gggg.Column(0, 0)

this works done



------------------------------------
.OLEObjects.Add classtype:="forms.combobox.1"
With .OLEObjects(.OLEObjects.Count)
.Name = "gggg"
.Left = 900
With .Object
For v2 = 0 To 2
.AddItem
.Column(0, .ListCount - 1) = "111"
.Column(1, .ListCount - 1) = "222"
Next
End With
End With

MsgBox .gggg.Column(0, 0)

'object doesnt support this method or property



why when i create dynamically component, and after creation i try t
call this component i get the error ??????


but if i call created component using last statemen

--
Mare
-----------------------------------------------------------------------
Marek's Profile: http://www.excelforum.com/member.php...fo&userid=1376
View this thread: http://www.excelforum.com/showthread.php?threadid=26911

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default some problems calling components :(

You named the OleObject, so use that

Activesheet.OleObjects("gggg").Object.AddItem "1"

--
Regards,
Tom Ogilvy


"Marek" wrote in message
...

people for example i try to show component name,

but when i try to call a component i get error


-----------------------------
gggg.AddItem ("1")
MsgBox .gggg.Column(0, 0)

this works done



------------------------------------
OLEObjects.Add classtype:="forms.combobox.1"
With .OLEObjects(.OLEObjects.Count)
Name = "gggg"
Left = 900
With .Object
For v2 = 0 To 2
AddItem
Column(0, .ListCount - 1) = "111"
Column(1, .ListCount - 1) = "222"
Next
End With
End With

MsgBox .gggg.Column(0, 0)

'object doesnt support this method or property



why when i create dynamically component, and after creation i try to
call this component i get the error ??????


but if i call created component using last statement


--
Marek
------------------------------------------------------------------------
Marek's Profile:

http://www.excelforum.com/member.php...o&userid=13769
View this thread: http://www.excelforum.com/showthread...hreadid=269114



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Web Components yaanai Excel Discussion (Misc queries) 0 February 7th 08 04:42 AM
Problems calling a procedure in another application msk19[_3_] Excel Programming 1 September 14th 04 12:49 PM
Calling Forms from Forms - Exit problems Stuart[_5_] Excel Programming 3 May 25th 04 06:50 AM
problems calling this function Pal Excel Programming 1 February 13th 04 06:24 PM
Using Microsoft Web Components In VB sharon Excel Programming 1 December 15th 03 02:20 PM


All times are GMT +1. The time now is 12:07 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"