VBA
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: VBA

  1. #1
    New Member
    Join Date
    Mar 2002
    Location
    England
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    Hello all.

    I've recorded a macro to delete empty rows on the first worksheet in a workbook containg 10 sheets. However what I want the macro to do is go to the next sheet, perform the macro operation and then move to the next sheet until all are done. Unfortunately i don't know waht code to append to the end of the macro to tell it to do this. CAn anyone help?

    Regards

    Lee

  2. #2
    Board Regular
    Join Date
    Mar 2002
    Location
    Cincinnati, Ohio, USA
    Posts
    6,824
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    No Problemo

    Dim ws as Worksheet
    For Each ws in WorkSheets
    ws.activate
    Call Your macro here
    Next
    Will loop through every worksheet in your workbook.


    Tom

  3. #3
    New Member
    Join Date
    Mar 2002
    Location
    England
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    Wahey!!

    Thanks a bunch TsTom, works a treat.


User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com