How to access and set the Foreign Image Transparency Cell?

Started by healthNut, August 13, 2012, 06:09:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

healthNut

Tried this but the the transparency does not set:


Sub setTransparency(shpObj As Visio.Shape, intVal As Integer)
  Dim cellObj As Visio.Cell
  Set cellObj = shpObj.CellsU("Transparency")

  Debug.Print "cellObj.Name: " & cellObj.Name

  Debug.Print "Before cellObj.Formula: " & cellObj.Formula
  cellObj.Formula = intVal
  Debug.Print "After cellObj.Formula: " & cellObj.Formula

End Sub


Immediate window output:
cellObj.Name: Transparency
cellObj.Section: 1
Before cellObj.Formula: 0%
After cellObj.Formula: 0%

healthNut

Figured it out:
Transparency formula was looking for a string, not an integer