Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default How to read the contents of an OLEObject (dropdown list) in excel

I used this code

Sub listcontents()
Dim OLEObj As OLEObject
For Each OLEObj In ActiveSheet.OLEObjects
If TypeOf OLEObj.Object Is MSForms.HTMLSelect Then
Debug.Print OLEObj.Name
Debug.Print OLEObj.progID
End If
Next OLEObj


End Sub

to get the following return.

HTMLSelect1
Forms.HTML:Select.1

I would like to undertand.. as i know this is an OLEObject, i want to
read this list to other worksheet cells. Is that possible to read from
the list? This was a copy/paste from a secure website. the list came
over into excel as a dropdown list.

If more information is needed please ask. The solution i need to be
able to read the contents of this list and display them in another
sheet in the cells, say column A, rows 2 - x.

Thanks for any help.

Keri
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
Excel formula to read contents Fiona Excel Discussion (Misc queries) 7 June 12th 07 05:35 PM
How to change contents of list dropdown david.karr Excel Discussion (Misc queries) 1 June 6th 07 12:49 AM
Procedure to make a dropdown list larger so it's easier to read Jack Oziel Excel Discussion (Misc queries) 4 December 26th 05 05:49 PM
Can I import a folder's contents as a dropdown list? Terp Excel Worksheet Functions 2 August 23rd 05 06:35 PM
Trying to get/set contents of embedded file using Excel OleObject Rich[_22_] Excel Programming 1 April 15th 04 07:21 AM


All times are GMT +1. The time now is 07:46 AM.

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"