ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Choose picture to display (https://www.excelbanter.com/excel-programming/427890-choose-picture-display.html)

Tomas Stroem

Choose picture to display
 
Hi,

I am about to make a form from data in an excel sheet, simple, until the
demand came that, depending on some data in this sheet, a specific picture is
supposed to be dislplayed in the form.

My guess is that a macro is the best way to make this happen but right now I
dont see the way, can somebody give an idéa?

grateful for all suggestions
--
Tomas S

Jacob Skaria

Choose picture to display
 
If you are looking at Userform; check the properties window of User form and
browse a picture for the Picture property.

If you are looking at inserting a picture in worksheet. Check Insert..menu

If this post helps click Yes
---------------
Jacob Skaria


"Tomas Stroem" wrote:

Hi,

I am about to make a form from data in an excel sheet, simple, until the
demand came that, depending on some data in this sheet, a specific picture is
supposed to be dislplayed in the form.

My guess is that a macro is the best way to make this happen but right now I
dont see the way, can somebody give an idéa?

grateful for all suggestions
--
Tomas S


Rick Rothstein

Choose picture to display
 
I think we need some more information. When you say "form", do you mean a
UserForm or a worksheet made to look like a form? Are you talking about
having several pictures and having them automatically change as the data
changes in some way? If so, tell us what the conditions are that determine
what pictures to use. Also, to make it easier on you for implementing any
code we give you, tell us the names of your picture files, the directory
they are kept in and which picture file goes with which data condition.

--
Rick (MVP - Excel)


"Tomas Stroem" wrote in message
...
Hi,

I am about to make a form from data in an excel sheet, simple, until the
demand came that, depending on some data in this sheet, a specific picture
is
supposed to be dislplayed in the form.

My guess is that a macro is the best way to make this happen but right now
I
dont see the way, can somebody give an idéa?

grateful for all suggestions
--
Tomas S



Tomas Stroem

Choose picture to display
 
Sorry,

I mean a sheet that loks like a form, feed from the sheet with data, one of
the pieces of information needed is the picture that I want to insert at a
specific location in this form sheet.

The user will, through filters, find the set of information suitable for
what shall be accomplished. In a cell they will enteyr the number for this
information set, which I will use to populate the form sheet. Then they will
print the now created sheet to use as instructions in next operation. One of
the pieces of information is the picture that I need to insert-

The data will be several hundred rows where each row will fill the form
sheet. -number of pictures i far less, perhaps 20. I will create an
indentifier to choose picture from depending on three different pieces of
information in the database. This will be numbers from 1-20. I plan to save
the pictures in the same directory as the worksheet containing data. Name
will be "pic 1.jpg" ....

Hope this gives a better idea...

--
Tomas S


"Rick Rothstein" wrote:

I think we need some more information. When you say "form", do you mean a
UserForm or a worksheet made to look like a form? Are you talking about
having several pictures and having them automatically change as the data
changes in some way? If so, tell us what the conditions are that determine
what pictures to use. Also, to make it easier on you for implementing any
code we give you, tell us the names of your picture files, the directory
they are kept in and which picture file goes with which data condition.

--
Rick (MVP - Excel)


"Tomas Stroem" wrote in message
...
Hi,

I am about to make a form from data in an excel sheet, simple, until the
demand came that, depending on some data in this sheet, a specific picture
is
supposed to be dislplayed in the form.

My guess is that a macro is the best way to make this happen but right now
I
dont see the way, can somebody give an idéa?

grateful for all suggestions
--
Tomas S




Dave Peterson

Choose picture to display
 
If the pictures weren't too large (in bytes), then I'd just put them all in the
same location--where they need to be to be printed.

Then instead of loading them from the folder, just show the one you want (and
hide the others).

worksheets("somesheetname").pictures("Pict001").vi sible = true

kind of thing.

Tomas Stroem wrote:

Sorry,

I mean a sheet that loks like a form, feed from the sheet with data, one of
the pieces of information needed is the picture that I want to insert at a
specific location in this form sheet.

The user will, through filters, find the set of information suitable for
what shall be accomplished. In a cell they will enteyr the number for this
information set, which I will use to populate the form sheet. Then they will
print the now created sheet to use as instructions in next operation. One of
the pieces of information is the picture that I need to insert-

The data will be several hundred rows where each row will fill the form
sheet. -number of pictures i far less, perhaps 20. I will create an
indentifier to choose picture from depending on three different pieces of
information in the database. This will be numbers from 1-20. I plan to save
the pictures in the same directory as the worksheet containing data. Name
will be "pic 1.jpg" ....

Hope this gives a better idea...

--
Tomas S

"Rick Rothstein" wrote:

I think we need some more information. When you say "form", do you mean a
UserForm or a worksheet made to look like a form? Are you talking about
having several pictures and having them automatically change as the data
changes in some way? If so, tell us what the conditions are that determine
what pictures to use. Also, to make it easier on you for implementing any
code we give you, tell us the names of your picture files, the directory
they are kept in and which picture file goes with which data condition.

--
Rick (MVP - Excel)


"Tomas Stroem" wrote in message
...
Hi,

I am about to make a form from data in an excel sheet, simple, until the
demand came that, depending on some data in this sheet, a specific picture
is
supposed to be dislplayed in the form.

My guess is that a macro is the best way to make this happen but right now
I
dont see the way, can somebody give an idéa?

grateful for all suggestions
--
Tomas S




--

Dave Peterson


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com