+ Reply to Thread
Results 1 to 6 of 6

Call "another Macro" multiple times

Hybrid View

  1. #1
    Registered User
    Join Date
    02-11-2013
    Location
    Guernsey
    MS-Off Ver
    Excel 2010
    Posts
    80

    Call "another Macro" multiple times

    Hi,

    Quick question, can you use
    Call macro name
    multiple time based on a Cell Value within a worksheet?

    Obviously my printer is too ancient to be able to print multiple copies at once so a work around would be to call the Print macro as many times as required based on a cell value within the worksheet.

    Let me know what you think

    Many thanks

    simon

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Simon

    Can't you specify the no of copies when you use PrintOut?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    02-11-2013
    Location
    Guernsey
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Call "another Macro" multiple times

    I had another thread about this idea as it was not working

    http://www.excelforum.com/excel-prog...52#post3144052

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Call "another Macro" multiple times

    Maybe use a Loop?

    Sub SimonWard()
    Dim x As Long
    
    x = Sheets("Selection").Range("E27").Value
    
    Do Until x = 0
        Call MacroName
        x = x - 1
    Loop
    
        
    End Sub

  5. #5
    Registered User
    Join Date
    02-11-2013
    Location
    Guernsey
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Call "another Macro" multiple times

    Ahh ok thanks

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Call "another Macro" multiple times

    You're welcome. Hope it helps.

+ 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