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

Hi all,

is it possible to have a floating toolbar on a certain page in excel?
bascially what i want is to combine 4 sheets into one and have the same
buttons available to the user wherever they scroll on the page - but only on
that page, not for all pages.

tia!

J
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default floating toolbar

When you say "page" I assume you mean worksheet. To have a toolbar appear
and disappear when a worksheet is activated/deactivated you'd have to use
the corresponding events. Right click on the worksheet's tab and pick View
Code. Paste this in and change the toolbar name to yours. This will take
some fine-tuning. For instance it will not fire when the user changes to
another workbook, just to another worksheet in this workbook. So you'd also
have to code for the workbook activate/deactive events in the ThisWorkbook
module.

Private Sub Worksheet_Activate()
Application.CommandBars("myBar1").Visible = True
End Sub

Private Sub Worksheet_Deactivate()
Application.CommandBars("myBar1").Visible = False
End Sub


--
Jim
"Gixxer_J_97" wrote in message
...
| Hi all,
|
| is it possible to have a floating toolbar on a certain page in excel?
| bascially what i want is to combine 4 sheets into one and have the same
| buttons available to the user wherever they scroll on the page - but only
on
| that page, not for all pages.
|
| tia!
|
| J


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 206
Default floating toolbar

Thanks Jim!

J

"Jim Rech" wrote:

When you say "page" I assume you mean worksheet. To have a toolbar appear
and disappear when a worksheet is activated/deactivated you'd have to use
the corresponding events. Right click on the worksheet's tab and pick View
Code. Paste this in and change the toolbar name to yours. This will take
some fine-tuning. For instance it will not fire when the user changes to
another workbook, just to another worksheet in this workbook. So you'd also
have to code for the workbook activate/deactive events in the ThisWorkbook
module.

Private Sub Worksheet_Activate()
Application.CommandBars("myBar1").Visible = True
End Sub

Private Sub Worksheet_Deactivate()
Application.CommandBars("myBar1").Visible = False
End Sub


--
Jim
"Gixxer_J_97" wrote in message
...
| Hi all,
|
| is it possible to have a floating toolbar on a certain page in excel?
| bascially what i want is to combine 4 sheets into one and have the same
| buttons available to the user wherever they scroll on the page - but only
on
| that page, not for all pages.
|
| tia!
|
| J



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
floating toolbar to stay put BorisS Excel Discussion (Misc queries) 2 December 3rd 06 08:47 PM
Floating Toolbar Dave Excel Discussion (Misc queries) 4 April 29th 05 04:57 PM
PDF 4.0 Floating Toolbar Darrell Excel Discussion (Misc queries) 1 February 10th 05 06:14 PM
floating toolbar scottwilsonx[_67_] Excel Programming 2 October 29th 04 01:24 PM
Floating Toolbar Roger Bedford[_2_] Excel Programming 2 July 6th 04 06:03 PM


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