Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Export Picture

This may seem a little strange, but to me it makes sense. I have a custom install program built in a workbook that will install that workbook and create all the folders it needs (the file is basically a program). I have set it up to creat desktop icons as well as links in the start menu. I also know how to modify the code to assign a picture as the icon. What my issue is, I would like the whole program to be self contained. What I would like to do is store the icon pictures in the workbook and when the workbook is installed, have code that creates icon files from those pistures that I can save and then link to

I have been searching google for the last couple hours and have come up with nothing. Is this even possible, if so, can someone point me in the right direction
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default Export Picture

Hi Sean;
You can test this:
To place your icon in a control image on a userform and recover the ico file by
means of the routine:

Sub SaveIcoFile()
Dim IcoFile As String
IcoFile = ThisWorkbook.Path & "\MyIcon.ico"
SavePicture UserForm1.Image1.Picture, IcoFile
End Sub

and after, create the shortcut:

Sub CreateLink()
With CreateObject("WScript.Shell")
With .CreateShortcut(.SpecialFolders("Desktop") & "\MyProg.lnk")
.TargetPath = ThisWorkbook.Path & "\MyBook.xls"
.WindowStyle = 1
.Hotkey = "CTRL+SHIFT+M"
.IconLocation = ThisWorkbook.Path & "\MyIcon.ico, 0"
.Description = "As you want"
.WorkingDirectory = ThisWorkbook.Path
.Save
End With
End With
End Sub

MP

"Sean" a écrit dans le message de
...
This may seem a little strange, but to me it makes sense. I have a custom

install program built in a workbook that will install that workbook and create all
the folders it needs (the file is basically a program). I have set it up to creat
desktop icons as well as links in the start menu. I also know how to modify the
code to assign a picture as the icon. What my issue is, I would like the whole
program to be self contained. What I would like to do is store the icon pictures
in the workbook and when the workbook is installed, have code that creates icon
files from those pistures that I can save and then link to.

I have been searching google for the last couple hours and have come up with

nothing. Is this even possible, if so, can someone point me in the right
direction


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
Connect a number to a picture bank and import that picture to exce Dennis Hedo Excel Discussion (Misc queries) 1 March 22nd 10 02:17 PM
export re-order input fields to export file [csv] madisonpete Excel Worksheet Functions 0 November 30th 07 03:51 PM
insert a picture in to a comment but picture not save on hard disk Pablo Excel Discussion (Misc queries) 0 February 21st 07 03:48 PM
How to export a picture or chart from Excel to PowerPoint? RADO[_3_] Excel Programming 2 November 3rd 03 01:15 PM
Export picture as gif in Excel Joe 90 Excel Programming 10 October 8th 03 12:43 PM


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