Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. Sub Main
  2.  
  3. 'Declare the variable that will reference the application
  4. Dim SurferApp As Object
  5. Set SurferApp = CreateObject("Surfer.Application")
  6. SurferApp.Visible = True
  7.  
  8. 'Declares Plot as an object
  9. Dim Plot As Object
  10. Set Plot = SurferApp.Documents.Add
  11.  
  12. 'Creates a post map and assigns the map frame to the variable "MapFrame"
  13. Set PostMapFrame = Plot.Shapes.AddPostMap("${PATH}")
  14.  
  15. 'Declares PostMap as an Object and assigns the post map to variable "PostMap"
  16. Dim PostMap As Object
  17. Set PostMap = PostMapFrame.Overlays(1)
  18.  
  19. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement