Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 29th, 2004, 09:39 AM
Authorized User
 
Join Date: Nov 2004
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default TabStrip Part II

I have a dynamically created TabStrip. I know in order to reference dynamically created objects, I need to reference them like this:

myForm!Label1

But I'm not sure how to capture the click event of my TabStrip. I've been trying the following code with no success:

Private Sub (myform!TabStrip1)_click()

Can anyone help?

 
Old December 7th, 2004, 05:44 PM
Authorized User
 
Join Date: Jul 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear dkr72,

In excel VBA help you find under Click Event the following syntax :

Private sub object_click(index as long) for an Multipage or tabstrip

If you double click on the tabstrip in VBA edit mode then automatically
the syntax : Private Sub Tabstrip1_Click(Byval Index as Long) is generated.

Succes








Similar Threads
Thread Thread Starter Forum Replies Last Post
TabStrip dkr72 Excel VBA 9 November 20th, 2004 05:47 PM
Connecting to Ingres II n_nikhar ADO.NET 0 June 29th, 2004 08:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.