Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default how do I get a visio pic on my worksheet on a form?

Private Sub Worksheet_Calculate()
Dim oPic As Picture
End Sub

worked fine for me in Excel 2003

Picture is a valid object.

--
regards,
Tom Ogilvy

"Jason V" wrote in message
...
Thanks. I think I am close. My only problem now is that the code written
in
the example is this
Private Sub Worksheet_Calculate()
Dim oPic As Picture
Me.Pictures.Visible = False
With Range("F1")
For Each oPic In Me.Pictures
If oPic.Name = .Text Then
oPic.Visible = True
oPic.Top = .Top
oPic.Left = .Left
Exit For
End If
Next oPic
End With
End Sub

my excel 2003 does not like the Dim opic as Picture
Do you have an answer for this?
Thanks
--
Jason V


"Tom Ogilvy" wrote:

If it is a picture and not an Oleobject

Display Pictures:
http://www.mcgimpsey.com/excel/lookuppics.html

If an OleObject, then I think you have to copy and paste as Object

--
Regards,
Tom Ogilvy


"Jason V" wrote:

I have visio pics on a worksheet and depending on an answer I want to
use
change the picture in my image. How do I do this in VBA Code.
--
Jason V



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel/Visio Form for entering data lawndart Excel Discussion (Misc queries) 0 February 15th 10 04:48 PM
Microsoft Visio templates - Stencil for Visio to create IT diagrams &network design Betty Carson Excel Worksheet Functions 2 December 10th 09 06:41 AM
inserting a VISIO drawing into a worksheet Kurt Schoenrock Excel Worksheet Functions 1 August 24th 05 11:35 PM
Scrolling an Excel worksheet embedded in a Visio diagram with VBA Big Dave[_4_] Excel Programming 0 August 18th 05 09:57 PM
Referencing Embedded Worksheet in Visio? paulharvey[_11_] Excel Programming 0 August 16th 05 08:31 PM


All times are GMT +1. The time now is 04:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"