Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default diff toolbar for diff workbook

Hello,

I am just wondering if i open up A workbook, it will appear A toolbar . if i
open another workbook, it will appear that toolbar for that workbook. Simply
said, just want to make the macro tool buttons independent for each workbook.
It seems the the create toolbar thing is linked to the whole excel program,
see all my toolbars that i have created so far even when i just open up the
exel application without opening any workbook.

Can anyone give some advice on how to make it independent? btw, i did not
know how to write the script for creating toolbar and buttons, i just did it
using the excel "add and remove" button under view toolbar menu.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default diff toolbar for diff workbook


You should create your toolbar in the on activate event and delete it i
the
deactivate event

--
Kaa
-----------------------------------------------------------------------
Kaak's Profile: http://www.excelforum.com/member.php...nfo&userid=751
View this thread: http://www.excelforum.com/showthread.php?threadid=49862

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default diff toolbar for diff workbook

Hi Kaak,

Thanks for your reply.

wHat do u mean by on activate and deactivitive? i have never come across
this before? can u elaborate further?

"Kaak" wrote:


You should create your toolbar in the on activate event and delete it in
the
deactivate event.


--
Kaak
------------------------------------------------------------------------
Kaak's Profile: http://www.excelforum.com/member.php...fo&userid=7513
View this thread: http://www.excelforum.com/showthread...hreadid=498624


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default diff toolbar for diff workbook


The workbook has events of his one.

This code is for the workbook, not in a module or in a sheet.

Private Sub Workbook_Activate()

'MsgBox ("Workbook_Activate")

Call CreateMenu

End Sub

Private Sub Workbook_Deactivate()

'MsgBox ("Workbook_Deactivate")

Call DeleteMenu

End Sub


--
Kaak
------------------------------------------------------------------------
Kaak's Profile: http://www.excelforum.com/member.php...fo&userid=7513
View this thread: http://www.excelforum.com/showthread...hreadid=498624

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
plotting column chart whch colors the bars diff for diff comm Cathy Charts and Charting in Excel 5 March 19th 09 06:30 PM
SUMIF formula required to search for 2 diff values in 2 diff colum Lidy693 Excel Worksheet Functions 7 February 21st 09 09:45 PM
Excel workbook, same name on diff sheets, need the next column and ycwkpp898 Excel Discussion (Misc queries) 2 February 16th 09 12:42 PM
how you make links between diff. cells on diff. work sheets NYC-MIKE Excel Worksheet Functions 3 February 11th 08 05:05 PM
opening diff. worksheets in opened workbook AlexD Excel Programming 3 April 22nd 04 08:23 PM


All times are GMT +1. The time now is 03:11 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"