Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Comboxbox in Commandbar

Hi all,
I have an addin and have one commandbar in it. Im facing a problem in
inserting value when ever i open a excel file i want to fill the combox box
with sheet names.
im not able to do it by VBA; any help, link or sample code will be of good
help...

--
thanx..
Bhavtosh
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Comboxbox in Commandbar

Why not. There is an additem method for the control.

--
Regards,
Tom Ogilvy


"Bhavtosh" wrote in message
...
Hi all,
I have an addin and have one commandbar in it. Im facing a problem in
inserting value when ever i open a excel file i want to fill the combox

box
with sheet names.
im not able to do it by VBA; any help, link or sample code will be of good
help...

--
thanx..
Bhavtosh



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Comboxbox in Commandbar

i have the Auto_Open for my addin where im creating the combobox; now the
problem is i want to poplate the control's value by calling a procedure... do
u have some help on this point?

thanx
bhavtosh

"Tom Ogilvy" wrote:

Why not. There is an additem method for the control.

--
Regards,
Tom Ogilvy


"Bhavtosh" wrote in message
...
Hi all,
I have an addin and have one commandbar in it. Im facing a problem in
inserting value when ever i open a excel file i want to fill the combox

box
with sheet names.
im not able to do it by VBA; any help, link or sample code will be of good
help...

--
thanx..
Bhavtosh




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Comboxbox in Commandbar

thanx a ton!

"Tom Ogilvy" wrote:

You don't need to call a procedure. Once you create the control, you can
populate it with additem

for each sh in ActiveWorkbook.Worksheets
cbCombo.AddItem sh.name
Next

where cbCombo represents a reference to your control.

This assumes the workbook you want to work with is open.

--
Regards,
Tom Ogilvy


"Bhavtosh" wrote in message
...
i have the Auto_Open for my addin where im creating the combobox; now the
problem is i want to poplate the control's value by calling a procedure...

do
u have some help on this point?

thanx
bhavtosh

"Tom Ogilvy" wrote:

Why not. There is an additem method for the control.

--
Regards,
Tom Ogilvy


"Bhavtosh" wrote in message
...
Hi all,
I have an addin and have one commandbar in it. Im facing a problem in
inserting value when ever i open a excel file i want to fill the

combox
box
with sheet names.
im not able to do it by VBA; any help, link or sample code will be of

good
help...

--
thanx..
Bhavtosh






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
ComboxBox with Dynamically Defined Source, and LinkedCell error GlennUK Excel Discussion (Misc queries) 1 June 4th 08 03:11 PM
commandbar problems Richard Cook Excel Discussion (Misc queries) 1 July 8th 05 05:32 PM
Commandbar frustration. Julian Cox Excel Programming 6 July 23rd 04 08:57 PM
Add-In needs to create CommandBar lucp Excel Programming 8 June 27th 04 01:46 PM
commandbar Greg Prost[_2_] Excel Programming 2 November 21st 03 11:42 AM


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