Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Replace the VBA code with the Qm code error
#7
I used the QM code to delete the form and an error occurred :oops:

VBA:
Sub deletetable()
For Each v In ActiveDocument.Tables
v.Delete
Next
MsgBox "ok"
End Sub

QM:
Macro Macro1
Trigger SF9     Help - how to add the trigger to the macro
Code:
Copy      Help
;/exe 1

typelib Word {00020905-0000-0000-C000-000000000046} 8.0
Word.Application app._getactive
Word.Document doc=app.ActiveDocument
VARIANT v
foreach v doc.Tables
,v.Delete

;BEGIN PROJECT
;main_function  Macro1
;exe_file  $my qm$\Macro1.qmm
;flags  6
;guid  {3DA97B40-4C34-45B9-B34D-CAC175C705BC}
;END PROJECT


Attached Files Image(s)
   


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)