Consulting

Results 1 to 1 of 1

Thread: How to Create a Loop

  1. #1

    How to Create a Loop

    Hello. Can you help me? How do I create a loop for the code below? It is VBA inside an application.


    It is okay if it loops continuously as I can always press the stop button for the macro. Thank you.

    Sub Price()
    '' Generated by the Reflection Macro Recorder on 03-03-2022  10:14:28.24
    ' Generated by Reflection for IBM for Windows 14.0.1076
    'With Session
            .SetSelectionStartPos 9, 39
            .ExtendSelectionRect 9, 42
            .CopySelection
            .TransmitTerminalKey rcIBMTabKey
            .TransmitTerminalKey rcIBMTabKey
            .TransmitTerminalKey rcIBMTabKey
            .TransmitTerminalKey rcIBMTabKey
            .Paste
            .TransmitTerminalKey rcIBMPf6Key
            .TransmitTerminalKey rcIBMPf11Key
        End With
    End Sub
    Last edited by Aussiebear; 03-04-2022 at 04:42 AM. Reason: Added code tags to supplied code

Posting Permissions

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