Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tom Tom is offline
external usenet poster
 
Posts: 44
Default Function LoadResPicture ?!?

Hi

I want to create a transparent icon and I found the following article, which
exactly contains the solution for my problem:

HOWTO: Add a Transparent Icon to a Toolbar Button
http://support.microsoft.com/?kbid=260850

The problem is, that the visual basic example contains the function
"LoadResPicture", which is not supported by Excel 2002. How to make this
example work? Any ideas?

Many thanks in advance!

Tom


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Function LoadResPicture ?!?

try this article instead:

http://support.microsoft.com/default...71&Product=ofw
HOWTO: Create a Transparent Picture For Office CommandBar Buttons

Possibly related:

http://support.microsoft.com/default...17&Product=ofw
HOW TO: Set the Mask Property and the Picture Property for an Office 2003
CommandBar Button


--
Regards,
Tom Ogilvy


"Tom" wrote in message
...
Hi

I want to create a transparent icon and I found the following article,

which
exactly contains the solution for my problem:

HOWTO: Add a Transparent Icon to a Toolbar Button
http://support.microsoft.com/?kbid=260850

The problem is, that the visual basic example contains the function
"LoadResPicture", which is not supported by Excel 2002. How to make this
example work? Any ideas?

Many thanks in advance!

Tom




  #3   Report Post  
Posted to microsoft.public.excel.programming
Tom Tom is offline
external usenet poster
 
Posts: 44
Default Function LoadResPicture ?!?

Thanks


"Tom Ogilvy" schrieb im Newsbeitrag
...
try this article instead:

http://support.microsoft.com/default...71&Product=ofw
HOWTO: Create a Transparent Picture For Office CommandBar Buttons

Possibly related:

http://support.microsoft.com/default...17&Product=ofw
HOW TO: Set the Mask Property and the Picture Property for an Office 2003
CommandBar Button


--
Regards,
Tom Ogilvy


"Tom" wrote in message
...
Hi

I want to create a transparent icon and I found the following article,

which
exactly contains the solution for my problem:

HOWTO: Add a Transparent Icon to a Toolbar Button
http://support.microsoft.com/?kbid=260850

The problem is, that the visual basic example contains the function
"LoadResPicture", which is not supported by Excel 2002. How to make this
example work? Any ideas?

Many thanks in advance!

Tom






  #4   Report Post  
Posted to microsoft.public.excel.programming
Tom Tom is offline
external usenet poster
 
Posts: 44
Default Function LoadResPicture ?!?

Tom

thank you, but that is definitive too difficult for me. What I need is an
example that works with Excel. My script looks as follows:

Sub Example()
Dim cbrCtrl As CommandBarControl

ThisWorkbook.Worksheets(1).Shapes(1).Copy

Set cbrCtrl = Application.CommandBars("Tools").Controls.Add
With cbrCtrl
.Caption = "Hello World"
.OnAction = ThisWorkbook.Name & "!blabla"
.PasteFace
End With
Application.CutCopyMode = False
End Sub

Now I'd like to make it work with the "transparent"-property. Many thanks in
advance.

Tom








"Tom Ogilvy" schrieb im Newsbeitrag
...
try this article instead:

http://support.microsoft.com/default...71&Product=ofw
HOWTO: Create a Transparent Picture For Office CommandBar Buttons

Possibly related:

http://support.microsoft.com/default...17&Product=ofw
HOW TO: Set the Mask Property and the Picture Property for an Office 2003
CommandBar Button


--
Regards,
Tom Ogilvy


"Tom" wrote in message
...
Hi

I want to create a transparent icon and I found the following article,

which
exactly contains the solution for my problem:

HOWTO: Add a Transparent Icon to a Toolbar Button
http://support.microsoft.com/?kbid=260850

The problem is, that the visual basic example contains the function
"LoadResPicture", which is not supported by Excel 2002. How to make this
example work? Any ideas?

Many thanks in advance!

Tom






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Function LoadResPicture ?!?

If you ronly problem with the original link you posted is the function
LoadResPicture, then change that

Set oICO = LoadResPicture(IconId, vbResIcon)

to

Set ico = LoadPicture("C:\dms\forms\rsignl.ico")

and copy your icon from an icon file. (change the path to point to your
file).

--
Regards,
Tom Ogilvy

"Tom" wrote in message
...
Tom

thank you, but that is definitive too difficult for me. What I need is an
example that works with Excel. My script looks as follows:

Sub Example()
Dim cbrCtrl As CommandBarControl

ThisWorkbook.Worksheets(1).Shapes(1).Copy

Set cbrCtrl = Application.CommandBars("Tools").Controls.Add
With cbrCtrl
.Caption = "Hello World"
.OnAction = ThisWorkbook.Name & "!blabla"
.PasteFace
End With
Application.CutCopyMode = False
End Sub

Now I'd like to make it work with the "transparent"-property. Many thanks

in
advance.

Tom








"Tom Ogilvy" schrieb im Newsbeitrag
...
try this article instead:


http://support.microsoft.com/default...71&Product=ofw
HOWTO: Create a Transparent Picture For Office CommandBar Buttons

Possibly related:


http://support.microsoft.com/default...17&Product=ofw
HOW TO: Set the Mask Property and the Picture Property for an Office

2003
CommandBar Button


--
Regards,
Tom Ogilvy


"Tom" wrote in message
...
Hi

I want to create a transparent icon and I found the following article,

which
exactly contains the solution for my problem:

HOWTO: Add a Transparent Icon to a Toolbar Button
http://support.microsoft.com/?kbid=260850

The problem is, that the visual basic example contains the function
"LoadResPicture", which is not supported by Excel 2002. How to make

this
example work? Any ideas?

Many thanks in advance!

Tom










  #6   Report Post  
Posted to microsoft.public.excel.programming
Tom Tom is offline
external usenet poster
 
Posts: 44
Default Function LoadResPicture ?!?

Tom

What I need is a working example with an image, that is stored within the
Excel workbook. My example works fine with Excel 97 & 2000. With Excel 2002
the commandbar button looks strange, but with Excel it looks horrible!!!

Sub Example()
Dim cbrCtrl As CommandBarControl

ThisWorkbook.Worksheets(1).Shapes(1).Copy

Set cbrCtrl = Application.CommandBars("Tools").Controls.Add
With cbrCtrl
.Caption = "Hello World"
.OnAction = ThisWorkbook.Name & "!blabla"
.PasteFace
End With
Application.CutCopyMode = False
End Sub


I need a working example for Excel 2002 and Excel 2003. I'm willing to pay
for it!!! If there is anybody out there who can help me please contact me.

Tom




"Tom Ogilvy" schrieb im Newsbeitrag
...
If you ronly problem with the original link you posted is the function
LoadResPicture, then change that

Set oICO = LoadResPicture(IconId, vbResIcon)

to

Set ico = LoadPicture("C:\dms\forms\rsignl.ico")

and copy your icon from an icon file. (change the path to point to your
file).

--
Regards,
Tom Ogilvy

"Tom" wrote in message
...
Tom

thank you, but that is definitive too difficult for me. What I need is

an
example that works with Excel. My script looks as follows:

Sub Example()
Dim cbrCtrl As CommandBarControl

ThisWorkbook.Worksheets(1).Shapes(1).Copy

Set cbrCtrl = Application.CommandBars("Tools").Controls.Add
With cbrCtrl
.Caption = "Hello World"
.OnAction = ThisWorkbook.Name & "!blabla"
.PasteFace
End With
Application.CutCopyMode = False
End Sub

Now I'd like to make it work with the "transparent"-property. Many

thanks
in
advance.

Tom








"Tom Ogilvy" schrieb im Newsbeitrag
...
try this article instead:


http://support.microsoft.com/default...71&Product=ofw
HOWTO: Create a Transparent Picture For Office CommandBar Buttons

Possibly related:


http://support.microsoft.com/default...17&Product=ofw
HOW TO: Set the Mask Property and the Picture Property for an Office

2003
CommandBar Button


--
Regards,
Tom Ogilvy


"Tom" wrote in message
...
Hi

I want to create a transparent icon and I found the following

article,
which
exactly contains the solution for my problem:

HOWTO: Add a Transparent Icon to a Toolbar Button
http://support.microsoft.com/?kbid=260850

The problem is, that the visual basic example contains the function
"LoadResPicture", which is not supported by Excel 2002. How to make

this
example work? Any ideas?

Many thanks in advance!

Tom










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
copy of excel file not showing formulal/function in the function b oaallam Excel Discussion (Misc queries) 4 September 6th 07 01:20 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM
User-Defined Function pre-empting Built-in Function? How to undo???? MarWun Excel Programming 1 August 6th 03 09:31 PM


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