LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Object required?

I thought I just answered this :).

--

Vasant

"Jeff Wright" wrote in message
news:ghthe.40989$_K.31073@fed1read03...
Hi, folks

What I'm trying to do in the routine below is to copy the boolean values

of
OptionButtons 1 through 50 to column A in another workbook. However, I'm
getting an error 424, "Object required". Any ideas on what's wrong with

this
code? Also, do I need to dim i? If so, would the correct syntax be "Dim
i(50)" or "Dim i(50) as Integer"? I tried those statements, but then I get

a
"Type Mismatch" error.

Thanks (again!!)

Slightly confused in Arizona,

Jeff

Sub test()
For i = 1 To 50
Workbooks("Jeff1.xls").Worksheets("Sheet1").OLEObj ects("Optionbutton"

&
i) _
.Object.Value.Copy

Workbooks("Jeff2.xls").Worksheets("Sheet1").Cells( i,
1)
Next i
End Sub







 
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
R/T 424 - Object required Help Jim May Excel Discussion (Misc queries) 2 April 10th 08 03:01 PM
Object Required aftamath Excel Discussion (Misc queries) 2 March 14th 06 10:19 PM
Object required? Tony Excel Programming 2 March 22nd 05 04:52 PM
Object required error broogle Excel Programming 7 March 21st 05 09:01 AM
Object required. y Excel Programming 1 April 10th 04 10:50 AM


All times are GMT +1. The time now is 01:28 AM.

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

About Us

"It's about Microsoft Excel"