Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

How to Create a Loop in VBA

john10001

New Coder
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.



Code:
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
 

Buy us a coffee!

Buy me a coffee.
Back
Top Bottom