Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default Code an image viewer inside XL

I am using Office 2003 on Win XP.

Is it possible to code a simple image viewer inside an MS-Excel sheet;
perhaps code the drawing of an ActiveX control or some such control and then
allow the user to select a subfolder of images to display. There would need
to be a scroll button or other control to allow the user to scroll forward
and backward through the images contained in the folder.

I thought of just using the file open dialog and then switch the view to
thumbnail, but the images don't display large enough or in enough detail.

Any ideas? Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Code an image viewer inside XL

this would be a good start:

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

--
Regards,
Tom Ogilvy


"quartz" wrote:

I am using Office 2003 on Win XP.

Is it possible to code a simple image viewer inside an MS-Excel sheet;
perhaps code the drawing of an ActiveX control or some such control and then
allow the user to select a subfolder of images to display. There would need
to be a scroll button or other control to allow the user to scroll forward
and backward through the images contained in the folder.

I thought of just using the file open dialog and then switch the view to
thumbnail, but the images don't display large enough or in enough detail.

Any ideas? Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default Code an image viewer inside XL

Thanks Tom, interesting approach, the problem is, the images I'm working with
will be pretty dynamic, but this idea does put some wheels in motion.

I suppose I could code a program to copy the names of all the images into a
drop down from which the user would pick one; the program would then draw the
image.

Due to many users, I was hoping that each user could load a viewer which
they could drag to the appropriate max size for their screen, then all
subsequent images will fill the space available.

Bearing in mind that we need an in-house developed VBA solution, any other
thoughts? I noticed that there is a "SnapShotViewer" control, but I don't
know what it is or how to code it...

Thanks again for any further input.

"Tom Ogilvy" wrote:

this would be a good start:

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

--
Regards,
Tom Ogilvy


"quartz" wrote:

I am using Office 2003 on Win XP.

Is it possible to code a simple image viewer inside an MS-Excel sheet;
perhaps code the drawing of an ActiveX control or some such control and then
allow the user to select a subfolder of images to display. There would need
to be a scroll button or other control to allow the user to scroll forward
and backward through the images contained in the folder.

I thought of just using the file open dialog and then switch the view to
thumbnail, but the images don't display large enough or in enough detail.

Any ideas? Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Code an image viewer inside XL

If you want an embedded control that provides an interface for the user to
load images - I would suspect there are some, but I am not familiar with
them.

--
Regards,
Tom Ogilvy


"quartz" wrote:

Thanks Tom, interesting approach, the problem is, the images I'm working with
will be pretty dynamic, but this idea does put some wheels in motion.

I suppose I could code a program to copy the names of all the images into a
drop down from which the user would pick one; the program would then draw the
image.

Due to many users, I was hoping that each user could load a viewer which
they could drag to the appropriate max size for their screen, then all
subsequent images will fill the space available.

Bearing in mind that we need an in-house developed VBA solution, any other
thoughts? I noticed that there is a "SnapShotViewer" control, but I don't
know what it is or how to code it...

Thanks again for any further input.

"Tom Ogilvy" wrote:

this would be a good start:

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

--
Regards,
Tom Ogilvy


"quartz" wrote:

I am using Office 2003 on Win XP.

Is it possible to code a simple image viewer inside an MS-Excel sheet;
perhaps code the drawing of an ActiveX control or some such control and then
allow the user to select a subfolder of images to display. There would need
to be a scroll button or other control to allow the user to scroll forward
and backward through the images contained in the folder.

I thought of just using the file open dialog and then switch the view to
thumbnail, but the images don't display large enough or in enough detail.

Any ideas? Thanks.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Code an image viewer inside XL

This is kind of primitive but maybe this will get you started:

Create a blank userform with this code
on your userform module:

Private Sub UserForm_Initialize()
fsFile = Application.Selection.Value
UserForm1.Caption = fsFile
UserForm1.Picture = LoadPicture(fsFile)
End Sub

Private Sub UserForm_Click()
Unload Me
End Sub

This allows loading a picture on the form using a filepath
that you an import onto your excel sheet.
The code picks up the filepath you have selected on
your excel sheet. When you click the userform,
it unloads.

On your excel sheet create a command button.
On your standard module add this code:

Dim fsFile As FileSearch

Private Sub CommandButton1_Click()
UserForm1.Show vbModeless
End Sub

On your excel sheet you will need to import a file list of
images that the user can click on for example:

c:\wtc1.jpg
c:\chatwood1_la.jpg

-- Jim


quartz wrote:
I am using Office 2003 on Win XP.

Is it possible to code a simple image viewer inside an MS-Excel sheet;
perhaps code the drawing of an ActiveX control or some such control and then
allow the user to select a subfolder of images to display. There would need
to be a scroll button or other control to allow the user to scroll forward
and backward through the images contained in the folder.

I thought of just using the file open dialog and then switch the view to
thumbnail, but the images don't display large enough or in enough detail.

Any ideas? Thanks.




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
How can I insert an image inside a comment of a cell? Javigir Excel Discussion (Misc queries) 1 February 1st 07 12:03 PM
Run Excel VBA code inside Access [email protected] Excel Discussion (Misc queries) 1 November 18th 06 01:27 AM
Summation Formula Question (Code Inside) [email protected] Excel Programming 1 May 26th 06 07:03 PM
Store an image inside a cell? tx12345 Excel Worksheet Functions 3 January 18th 06 04:01 AM
How do I refer to other macros inside a macro code? Erkka Excel Programming 3 July 26th 05 03:27 PM


All times are GMT +1. The time now is 12:34 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"