Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default For each next choking.

I see it Jim


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"Jim Chandler" wrote in message ...
Well - I figured out the difference of what I had and what
you posted. It's Worksheets, not Sheets. Thanks for
putting up with my synaptic overload.

Jim
-----Original Message-----
Hi Jim

Show your other code Jim that is in this sub

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"Jim Chandler" wrote in

message ...

-----Original Message-----
Try this

Dim theSheet As Worksheet
For Each theSheet In ThisWorkbook.Worksheets
'Do some code...
Next theSheet


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"Jim Chandler" wrote in
message ...
Greetings,

Here is my problem I have code similar to the

following

Dim theSheet as WorkSheet

For each theSheet in thisWorkBook
Do some code...
next theSheet

It runs the first iteration fine, but the second
iteration
gives me a runtime error "type mismatch".

What I have discovered, is the second sheet is a

chart.
I've moved the chart and the choke time changes, so I
know
that is an issue with the chart. But I need to know
what
I can do to correct this. Any help in pointing me in
the
right direction would be greatly appreciated. And
anyone
who just plain gives me the right answer I'll name my
first born after ;-).

Thanks,
Jim


.


Okay - My mistake, I transposed (right word?) the code
wrong it is actually "thisworkbook.worksheets"

Jim



.



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



All times are GMT +1. The time now is 03:09 PM.

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"