Author Topic: Can you help vbs position, size, layer and lock  (Read 8977 times)

0 Members and 1 Guest are viewing this topic.

GeorgeTX

  • Newbie
  • *
  • Posts: 1
Can you help vbs position, size, layer and lock
« on: April 28, 2016, 11:24:14 AM »
4 STEP PROCESS

Hello, thanks for looking.
I am worn out and need to study VBA, but can you help this once?
I wish to drop a 800x600 picture into visio, resize it and set it as a background on a layer, while I annotate over the top of it.
I would drop the picture, and select it, then run the macro, which will:
1.   Position it at an absolute position relative to the ruler
2.   Size it to (lets say)  300x200
3.   Create a layer and move it to that layer
4.   Lock the item from selection
Thanks George.

Surrogate

  • Hero Member
  • *****
  • Posts: 1730
    • ShapeSheet™ Knowledge Base
Re: Can you help vbs position, size, layer and lock
« Reply #1 on: April 28, 2016, 11:27:48 AM »
Hi, George!

Do you need learn VBA or VBS (i.e. VBScript) ?
if you mean VBA, you can run macro-recorder, make your 4 step. And analise that code

aledlund

  • Hero Member
  • *****
  • Posts: 1412
Re: Can you help vbs position, size, layer and lock
« Reply #2 on: April 28, 2016, 05:35:52 PM »
another resource to consider is the v2010 sdk (which supports vba examples), it's free.
https://www.microsoft.com/en-us/download/details.aspx?id=12365

al edlund