VbaCallCPG.bas 605 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. Attribute VB_Name = "VbaCallCPG"
  2. Private Declare PtrSafe Function vbadll Lib "lycpg64.cpg" (ByVal code As Long) As Long
  3. Sub VBA调用CPG_CDR复制物件到AI()
  4. ret = vbadll(2)
  5. MsgBox "CDR复制物件到AI 功能 " & ret
  6. End Sub
  7. Sub AI复制物件到CDR()
  8. ret = vbadll(1)
  9. MsgBox "AI复制物件到CDR 功能 " & ret
  10. End Sub
  11. Sub Clear_Fill()
  12. ret = vbadll(3)
  13. MsgBox "Clear_Fill功能 " & ret
  14. End Sub
  15. Sub cql_FillColor()
  16. ret = vbadll(5)
  17. End Sub
  18. Sub Shapes_Filp()
  19. ret = vbadll(4)
  20. End Sub
  21. Sub cql_OutlineColor()
  22. ret = vbadll(6)
  23. End Sub
  24. Sub cql_SameSize()
  25. ret = vbadll(7)
  26. End Sub
  27. Sub fill_red()
  28. ret = vbadll(8)
  29. End Sub