Consulting

Results 1 to 6 of 6

Thread: Sleeper: Pause a Macro

  1. #1

    Sleeper: Pause a Macro

    This message has been cross-posted here (click here for an explanation of cross-posting)

    Is it possible to pause a macro, ie after starting my macro and selecting all my worksheets i want to be able to press Ctrl+F and then pause my macro, enter data and resume, is this possible ????

    Cheers

    Edited by geekgirlau on 27-Mar-06, 20:39 EST; Reason: cross post

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Hi Belgarth
    Welcome to VBAX
    Why not add an InputBox to your code to accept your data and write it to the required locations
    Regards
    MD
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    I would if I knew how to go about it, i`m new to VBA, is it posible to show me how please ?

  4. #4
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    I'll do that. Can you post the code that you have?
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  5. #5
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Here's an example to write some text into cell A3 of all sheets
     
    Sub Macro1()
        Dim ws As Worksheet
        Set ws = ActiveSheet
        Sheets.Select
        Range("A3").Formula = InputBox("Enter your data")
        ws.Select
        Set ws = Nothing
    End Sub
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  6. #6
    VBAX Master Norie's Avatar
    Joined
    Jan 2005
    Location
    Stirling, Scotland
    Posts
    1,831
    Location

Posting Permissions

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