#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default OLE Objects

i'm copying a form on excel from an application built on java
platform.

what i'm tring to do is get the value of the OLEobjects copied from
the form into excel.

first i tried the code mentioned below but this will take me ages to
do as there are wround 300 optionbutton and from them i need data in
100 cells.

If ActiveSheet.HTMLOption1.Checked = "True" Then
Sheets(2).Range("A1").Value = "Yes"
If ActiveSheet.HTMLOption2.Checked = "True" Then
Sheets(2).Range("A1").Value = "No"
If ActiveSheet.HTMLOption3.Checked = "True" Then
Sheets(2).Range("A1").Value = "N/A"

then i tried

For i = 1 To ActiveSheet.OLEObjects.Count
Sheets(2).Range("A" & i).Value = ActiveSheet.OLEObjects(i).Object
Next i

it is also not helping much as the value lands up not in the order i
want.

-Thanks
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
My objects are disappearing! KLV Charts and Charting in Excel 3 July 16th 07 04:04 PM
How to Name Chart Objects DCSwearingen Excel Discussion (Misc queries) 2 July 30th 06 10:27 AM
Embedded objects Mike25 Excel Discussion (Misc queries) 1 March 23rd 06 02:05 PM
Embedded Objects Lightfoot Excel Discussion (Misc queries) 0 December 30th 05 02:20 PM
VBA Objects Kevin Excel Discussion (Misc queries) 8 January 1st 05 09:07 PM


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