Jump to content
Macro Express Forums

End If Error Despite Syntax Being Ok?


Recommended Posts

hi all,


am very new to ME so please forgive me if i'm missing something really obvious. i've got the following macro section which throws up an error about there being a missing end if statement when it executes, but i can't see anything wrong with it and no syntax errors are reported when i check. variable %N1% has been set immediately prior to this section.


any help greatly appreciated!



If Message: "Confirm Item Creation?"

Repeat Until %N1% = %N2%

Delay 2 Seconds

Get Control %C10% (View Holdings Record: TButton)

Mouse Single Left Click on Control %C10%

Delay 2 Seconds

Get Control %C13% (: TEdit)

Text Type:ON ORDER

Delay 4 Seconds

Get Control %C11% (Item Information: TButton)

Mouse Single Left Click on Control %C11%

Delay 2 Seconds

Variable Modify Integer: Inc (%N2%)

Repeat End

Text Box Display: Item Creation Complete!


Macro Stop

End If

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...