regarding to Spreasheet Toolbar

M

Microsoft News

Hi,
i am customizing toolbar of spreadsheet (owc). I have added custom button on
toolbar.
I have seted tooltip for perticular custom button.
When I calling function to add new custom button to toolbar on
window_onload() procedure.tool tips not appears. if i call trough some input
button its come first and when i click on Speadsheet area it not comes.
I also downloaded some Sample Code from msdn. That also have same problems.

following is my code segment.
Sub AddTips()

Dim tb

Dim btnNewButton

Dim Spreadsheet

Dim iNumButtons


Set Spreadsheet = document.getElementById("Spreadsheet")

Spreadsheet.Refresh

Set tb = Spreadsheet.Toolbar

iNumButtons = tb.Buttons.Count

On Error Resume Next

Set btnNewButton = tb.Buttons.Add(iNumButtons, "cmdCreateView","Creer Vue",
tbrDefault,10)

' Set the tool tip text.

btnNewButton.ToolTipText = "Create view"

iNumButtons = iNumButtons + 1

' Add a separator after the custom button.

tb.Buttons.Add iNumButtons, , , 3

End Sub



Send email to (e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top