Visual Basic for Application

  1. Word 编程
  2. Excel 编程
  3. Access 编程
  4. AutoCAD 编程
  5. FrontPage 编程
  6. 对象库引用

判断对象是否有效(WORD 中)

TypeName if TypeName(var)="Field" then 无效
isObjectValid if isObjectValid(var)=false then 无效
is if not(var is nothing) then 有效