Hi,

I'm looking for a more general answer about objects in vba like :

dim ws as object
set ws = worksheets

For i = 1 To wkb.Worksheets.Count
  wkb.Sheets(3).Cells(i, 4) = wkb2.Worksheets(i).Name

It's ok until the last line, i understand what little there is to
understand (pointed notation?).
But is there any reason why instead of   wkb2.Worksheets(i).Name i
can't have wkb2.ws(i).Name ?

Thx

On Sep 23, 12:08 pm, r <[email protected]> wrote:
> On 23 Set, 12:28, roberto mensa <[email protected]> wrote:
>
> > >  For i = 1 To wkb.Worksheets.Count
>
> > Fix this line
> > regards
> > r
>
> grrrr :-)
> i'm sorry, so ...
>
> For i = 1 To wkb2.Worksheets.Count
>
> regard
> r

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to [email protected]

<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 7000 subscribers worldwide and receive many nice notes about the 
learning and support from the group.Let friends and co-workers know they can 
subscribe to group at http://groups.google.com/group/excel-macros/subscribe

Reply via email to