Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Return OLEObjects values or names - two examples

No question here, just a couple of procedure examples for the archive.


GET VALUES OF OLEObjects on worksheet
GET NAMES OF OLEObject Names on worksheet


Search criteria: Loop through OLEObjects and get values
Return OLEObjects values
List OLEObject Values List OLEObjects values
Get OLEObjects Values
Return OLEObjects names Get OLEOBjects names
OLEObjects name return OLEBObjects values return


Sub OLEObjectNamesReturn()

'Return all or any OLEObjects names to VB message box
Dim oleObj As OLEObject

For Each oleObj In ActiveSheet.OLEObjects
If TypeOf oleObj.Object Is MSForms.HTMLText Then
MsgBox "HTMLText: " & oleObj.Name
End If
Next

End Sub


Sub OLEObjectValueReturn()

'Return any or all OLEObjects values on active worksheet to active worksheet
Dim oleObj As OLEObject

For Each oleObj In ActiveSheet.OLEObjects
If TypeOf oleObj.Object Is MSForms.HTMLText Then
' MsgBox "HTMLText: " & oleObj.Object.Value
ActiveCell.Value = oleObj.Object.Value
ActiveCell.Offset(1, 0).Select
End If
Next

End Sub
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
Return the values for the same names across a row of data duketter Excel Discussion (Misc queries) 7 May 25th 07 07:04 PM
return all worksheet tab names and chart sheet tab names in report - an example DataFreakFromUtah Excel Programming 2 October 6th 04 08:09 PM
Taking over OLEObjects... Possible ?! Alex T Excel Programming 4 June 16th 04 11:02 AM
OLEObjects clickable? Erich Neuwirth Excel Programming 1 June 8th 04 04:27 AM
VBA Syntax for VLOOKUP to return array of return values Alan Beban[_3_] Excel Programming 7 August 5th 03 11:41 AM


All times are GMT +1. The time now is 10:00 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"