Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default Linking to remote directory of photos

I have played a little with the McGimpsey suggestion for inserting a picture
into a cell. The below code allows a picture to locate itself into the top
corner of cell AH33. The pic width and column width fits the picture into the
cell.

It would be better if the picture zoomed to fit the cell rather than me
setting limits. Suggestions???

Secondly, this code requires the picture to be placed into the document
itself. With hundred of pictures the file size is excessive.
I want to hold all the photos in a remote directory and link to them. How do
I do that????


Private Sub Worksheet_Calculate()
Dim oPic As Picture
Me.Pictures.Visible = False
With Range("AH33")
For Each oPic In Me.Pictures
If oPic.Name = .Text Then
oPic.Visible = True
oPic.Top = .Top
oPic.Left = .Left
oPic.Width = .ColumnWidth * 90
oPic.Height = .RowHeight * 13
Exit For
End If
Next oPic
End With
End Sub


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Linking to remote directory of photos

Create a macro that asks the user to select the picture and then load it.
--
Gary''s Student - gsnu200826


"Stevep4" wrote:

I have played a little with the McGimpsey suggestion for inserting a picture
into a cell. The below code allows a picture to locate itself into the top
corner of cell AH33. The pic width and column width fits the picture into the
cell.

It would be better if the picture zoomed to fit the cell rather than me
setting limits. Suggestions???

Secondly, this code requires the picture to be placed into the document
itself. With hundred of pictures the file size is excessive.
I want to hold all the photos in a remote directory and link to them. How do
I do that????


Private Sub Worksheet_Calculate()
Dim oPic As Picture
Me.Pictures.Visible = False
With Range("AH33")
For Each oPic In Me.Pictures
If oPic.Name = .Text Then
oPic.Visible = True
oPic.Top = .Top
oPic.Left = .Left
oPic.Width = .ColumnWidth * 90
oPic.Height = .RowHeight * 13
Exit For
End If
Next oPic
End With
End Sub


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default Linking to remote directory of photos

that might be possible, but the intention is that what ever code is in a
neighbouring cell would automatically pull the photo from the directory.

thus...=g:\shared\data\photo\[ &A5&.jpg]

The VBA code would then be required to manipulate the phot to fit the cell.


Note that cell a5 would itself be calling for data from a file in another
directory. This information would be the filename of the photo



"Gary''s Student" wrote:

Create a macro that asks the user to select the picture and then load it.
--
Gary''s Student - gsnu200826


"Stevep4" wrote:

I have played a little with the McGimpsey suggestion for inserting a picture
into a cell. The below code allows a picture to locate itself into the top
corner of cell AH33. The pic width and column width fits the picture into the
cell.

It would be better if the picture zoomed to fit the cell rather than me
setting limits. Suggestions???

Secondly, this code requires the picture to be placed into the document
itself. With hundred of pictures the file size is excessive.
I want to hold all the photos in a remote directory and link to them. How do
I do that????


Private Sub Worksheet_Calculate()
Dim oPic As Picture
Me.Pictures.Visible = False
With Range("AH33")
For Each oPic In Me.Pictures
If oPic.Name = .Text Then
oPic.Visible = True
oPic.Top = .Top
oPic.Left = .Left
oPic.Width = .ColumnWidth * 90
oPic.Height = .RowHeight * 13
Exit For
End If
Next oPic
End With
End Sub


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
Photos Sam Excel Worksheet Functions 1 July 9th 08 04:00 PM
Multiple Hyperlinks - linking external photos/files help jackie treehorn Excel Discussion (Misc queries) 0 November 19th 07 03:30 PM
Remote Filtering [email protected] Excel Discussion (Misc queries) 1 April 6th 06 01:52 AM
linking photos Smitty Links and Linking in Excel 1 July 28th 05 11:50 PM
Inserting Photos into Excel and linking to Word. Uploading Photos Excel Discussion (Misc queries) 0 March 17th 05 08:05 PM


All times are GMT +1. The time now is 07:02 PM.

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

About Us

"It's about Microsoft Excel"