![]() |
KnowBrainer Speech Recognition | ![]() |
Topic Title: Advanced Scripting VBA Reference Imacros Topic Summary: Created On: 09/14/2021 04:45 PM Status: Post and Reply |
|
![]() |
![]() |
- Smower | - 09/14/2021 04:45 PM |
![]() |
![]() |
- Mav | - 09/15/2021 02:40 AM |
![]() |
![]() |
- Smower | - 09/15/2021 09:39 AM |
![]() |
|
Hello experts, Option Explicit Thank you, Shawn |
|
|
|
![]() |
|
Hi! You seem to have forgotten the declaration of your Sub Main. Try this code: Option Explicit
Sub Main
Dim iim, status
Set iim= CreateObject ("imacros")
status = iim.iimOpen("")
Dim macro
macro = "TAG POS=2 TYPE=SPAN FORM=ACTION:. ATTR=TXT:""General merchandise""" + vbNewLine
macro = macro + "TAG POS=R1 TYPE=INPUT:TEXT FORM=ACTION:. ATTR=NAME:* CONTENT=123456" + vbNewLine
status = iim.iimPlayCode(macro)
End Sub
hth
mav
|
|
|
|
![]() |
|
That fixed it! Thank you!
|
|
|
FuseTalk Standard Edition v4.0 - © 1999-2022 FuseTalk™ Inc. All rights reserved.