+ Reply to Thread
Results 1 to 6 of 6

How can I repeat a macro, and how can make it without any message?

  1. #1
    emil
    Guest

    How can I repeat a macro, and how can make it without any message?

    Thanks for any helps
    Emil

  2. #2
    RB Smissaert
    Guest

    Re: How can I repeat a macro, and how can make it without any message?

    Sub Macro1()

    Dim i as Long

    For i = 1 to 10
    Macro2
    Next

    End Sub


    Sub Macro2()

    'run any code here

    End Sub


    RBS

    "emil" <emil@discussions.microsoft.com> wrote in message
    news:8AE7C220-0856-4CBD-9018-C0E6B513A81A@microsoft.com...
    > Thanks for any helps
    > Emil



  3. #3
    Tim Williams
    Guest

    Re: How can I repeat a macro, and how can make it without any message?

    You might want to think about posting a more detailed question.


    Sub Tester()
    dim i as integer
    application.displayalerts=false

    for i=1 to 20
    Macro1
    next i

    application.displayalerts=true

    end sub

    Sub Macro1()
    'do stuff
    End sub


    --
    Tim Williams
    Palo Alto, CA


    "emil" <emil@discussions.microsoft.com> wrote in message news:8AE7C220-0856-4CBD-9018-C0E6B513A81A@microsoft.com...
    > Thanks for any helps
    > Emil




  4. #4
    MSweetG222
    Guest

    RE: How can I repeat a macro, and how can make it without any message?

    Emil -

    Without knowing more - here is a way:


    Sub MyLoop
    For c = 1 to 50
    Call <insert your procedure name here>
    Next c
    End Sub


    This will run your code 50 times. Change the 50 above to 100 and it will
    loop thru your code 100 times.

    --
    Thx
    MSweetG222



    "emil" wrote:

    > Thanks for any helps
    > Emil


  5. #5
    emil
    Guest

    RE: How can I repeat a macro, and how can make it without any message?

    Thank you very much for help.
    It work
    Emil

    "emil" a scris:

    > Thanks for any helps
    > Emil


  6. #6
    emil
    Guest

    Re: How can I repeat a macro, and how can make it without any mess

    Milion thanks.
    It work too
    Emil

    "RB Smissaert" a scris:

    > Sub Macro1()
    >
    > Dim i as Long
    >
    > For i = 1 to 10
    > Macro2
    > Next
    >
    > End Sub
    >
    >
    > Sub Macro2()
    >
    > 'run any code here
    >
    > End Sub
    >
    >
    > RBS
    >
    > "emil" <emil@discussions.microsoft.com> wrote in message
    > news:8AE7C220-0856-4CBD-9018-C0E6B513A81A@microsoft.com...
    > > Thanks for any helps
    > > Emil

    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1