Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Insert Picture from File - Shortcut/Macro?

I want to create a shortcut/macro/menu button to insert our company logo to
Excel documents. The logo is a .jpg saved to the desktop.

Can anyone help?

Also, how do I view all my questions that I've posted in discussion groups?
There is one I can't find.

Thankyou!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Insert Picture from File - Shortcut/Macro?

---Try the below

Sub Macro1()
Dim strFile As String
strFile = "path and filename here"""

'If you are looking at inserting to the sheet
ActiveSheet.Pictures.Insert (strFile)

'OR Insert the log as a page header..
ActiveSheet.PageSetup.RightHeaderPicture.Filename = strFile

End Sub


----If you are using the web interface..

-For this question; on the right panel where you see the question
description clik on the name link (twinkle17) which brings up your
profile.

-From the profile window hit the link 'Recent Posts by this User' to see
your posts..

http://www.microsoft.com/communities...&lang=en&cr=US


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


"twinkle17" wrote:

I want to create a shortcut/macro/menu button to insert our company logo to
Excel documents. The logo is a .jpg saved to the desktop.

Can anyone help?

Also, how do I view all my questions that I've posted in discussion groups?
There is one I can't find.

Thankyou!

  #3   Report Post  
Posted to microsoft.public.excel.misc
AJB AJB is offline
external usenet poster
 
Posts: 40
Default Insert Picture from File - Shortcut/Macro?

Jacob - I was trying to do this same thing yesterday, but am not having much
luck. My goal is to get jpg files as the background in comments. Debra
Dalgleish has a few macros that are promising for me, but I need to get the
jpg file into the excel document first.

http://www.contextures.com/xlcomments03.html

I would be trying to get different pictures in everytime (i am in
construction and am trying to provide reference pictures for certain items of
my scope of work).

thanks so much,

Andy

"Jacob Skaria" wrote:

---Try the below

Sub Macro1()
Dim strFile As String
strFile = "path and filename here"""

'If you are looking at inserting to the sheet
ActiveSheet.Pictures.Insert (strFile)

'OR Insert the log as a page header..
ActiveSheet.PageSetup.RightHeaderPicture.Filename = strFile

End Sub


----If you are using the web interface..

-For this question; on the right panel where you see the question
description clik on the name link (twinkle17) which brings up your
profile.

-From the profile window hit the link 'Recent Posts by this User' to see
your posts..

http://www.microsoft.com/communities...&lang=en&cr=US


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


"twinkle17" wrote:

I want to create a shortcut/macro/menu button to insert our company logo to
Excel documents. The logo is a .jpg saved to the desktop.

Can anyone help?

Also, how do I view all my questions that I've posted in discussion groups?
There is one I can't find.

Thankyou!

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
Can u use IF to insert a picture file? ForeverH Excel Worksheet Functions 3 November 20th 08 10:35 PM
Insert picture from file (Need VBA help) TheMilkGuy Excel Discussion (Misc queries) 3 July 31st 08 05:07 AM
Insert, position, and resize a picture w/ Macro John Excel Discussion (Misc queries) 1 July 10th 07 07:21 PM
how can you insert a picture in a protected excel file ylolo Excel Worksheet Functions 0 September 13th 06 10:18 PM
insert picture from file based on cel value/content Jamaican Teacher Excel Worksheet Functions 1 June 8th 06 06:27 PM


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