Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Dynamic background image in Excel?

In Excel 2003, one can add a background picture to an Excel chart by
selecting...

Format plot area... Fill effects... Picture Tab... Selct Picture...

Is it possible to make the image (picture) acquisition a dynamic
process so that the image will refresh (update) each time Excel opens
or perhaps when a macro is run? The path and file name will be static,
but the image will be new each day.

If the solution is to construct a macro, I can do that, but I was
curious if there is a better way to address this.

Any thoughts?

Thanks!

Cheers,
J

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Dynamic background image in Excel?

You are correct, it will require a macro. You can make it so that the picture
is changed when you open the workbook, you can do the following. Open up the
VBE by right-clicking on the sheet tab, view code. In the project navigation
window (if not visible, check under View) navigate to the ThisWorkbook
module. Paste this in, and edit the appropriate lines:

'============
Private Sub Workbook_Open()
'Tell the macro which sheet to work with
Sheets("Sheet1").ChartObjects("Chart 1").Activate
With ActiveChart.PlotArea

'Which picture file to use?
.Fill.UserPicture PictureFile:= _
"C:\My Documents\My Pictures\My picture.bmp"
.Fill.Visible = True
End With
End Sub
'=============

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"icystorm" wrote:

In Excel 2003, one can add a background picture to an Excel chart by
selecting...

Format plot area... Fill effects... Picture Tab... Selct Picture...

Is it possible to make the image (picture) acquisition a dynamic
process so that the image will refresh (update) each time Excel opens
or perhaps when a macro is run? The path and file name will be static,
but the image will be new each day.

If the solution is to construct a macro, I can do that, but I was
curious if there is a better way to address this.

Any thoughts?

Thanks!

Cheers,
J

.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Dynamic background image in Excel?

On Feb 1, 8:21*am, Luke M wrote:
You are correct, it will require a macro. You can make it so that the picture
is changed when you open the workbook, you can do the following. Open up the
VBE by right-clicking on the sheet tab, view code. In the project navigation
window (if not visible, check under View) navigate to the ThisWorkbook
module. Paste this in, and edit the appropriate lines:

'============
Private Sub Workbook_Open()
* * 'Tell the macro which sheet to work with
* * Sheets("Sheet1").ChartObjects("Chart 1").Activate
* * With ActiveChart.PlotArea

* * 'Which picture file to use?
* * .Fill.UserPicture PictureFile:= _
* * * * "C:\My Documents\My Pictures\My picture.bmp"
* * .Fill.Visible = True
* * End With
End Sub
'=============

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


Thank you, Luke.
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 to restrict a repeating background image in Excel sheet ? wolfhyun Excel Discussion (Misc queries) 2 April 3rd 23 05:33 PM
Using a Word, PDF, Image as a background on Excel. Rodrigo Bravo Charts and Charting in Excel 1 December 21st 07 07:36 PM
Excel background image [email protected] Excel Discussion (Misc queries) 0 December 17th 07 03:13 AM
How do I get the print of the background image of excel? Rahul Gupta Excel Worksheet Functions 0 January 25th 06 08:33 AM
Form-filling application with Excel (background image)? J.Smith Excel Discussion (Misc queries) 1 May 15th 05 09:40 AM


All times are GMT +1. The time now is 05:17 AM.

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"