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

Browser ID: smf (is_webkit)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 140 (show)
Files included: 34 - 1321KB. (show)
Memory used: 1077KB.
Tokens: post-login.
Cache hits: 12: 0.00180s for 26,582 bytes (show)
Cache misses: 1: (show)
Queries used: 15.

[Show Queries]