Advertisement
kelvinella

Untitled

May 31st, 2023
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. ' For SG stuff
  2. Sub SG_PDF()
  3. ActiveDocument.Fields.Update
  4. RenameSG_ANS
  5. End Sub
  6.  
  7. Sub RenameSG_ANS()
  8. Dim oShp As Word.Shape
  9. For Each oShp In ActiveDocument.Shapes
  10. If oShp.Name = "~~~~~~~~~~~~ANS~~~~~~~~~~~TB" Then
  11. oShp.Name = "___ANS___"
  12. End If
  13. If oShp.Name = "?? 205" Then oShp.Delete
  14. Next oShp
  15. End Sub
  16.  
  17. Sub Hide_SG_ANS()
  18. Dim oShp As Word.Shape
  19. For Each oShp In ActiveDocument.Shapes
  20. If oShp.Name = "~~~~~~~~~~~~ANS~~~~~~~~~~~TB" Then
  21. oShp.Visible = msoFalse
  22. End If
  23. Next oShp
  24. End Sub
  25.  
  26. Sub Unhide_SG_ANS()
  27. Dim oShp As Word.Shape
  28. For Each oShp In ActiveDocument.Shapes
  29. If oShp.Name = "~~~~~~~~~~~~ANS~~~~~~~~~~~TB" Then
  30. oShp.Visible = msoTrue
  31. End If
  32. Next oShp
  33. End Sub
  34. Sub Macro1()
  35. '
  36. ' Macro1 Macro
  37. '
  38. '
  39. 'ActiveDocument.Shapes.Range(Array("practice")).Select
  40. 'ActiveDocument.Shapes.Range(Array("__ 205")).Select
  41. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement