Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Problems with Combo Box


Enter Design Mode
Make The Name of the combobox
cboSheets

Open Vb Editor

Tools Macro Visual Basic Editor
Double-Click on This Workbook icon in the Project Properties.



On the code sheet the drop down reads (General). Change this to" Workbook"
A sub is created called workbook_open


Workbook_Open()
Dim i as integer
for i = 1 to sheets.count
cboSheets.additem sheets(i).name
next
cbosheets.listindex=0
end sub

Double-Click on Sheet1 properties icon
You should see Sub cboSheets_Change()


Sub cboSheets_Change()
sheets(cboSheets.text).select

or

sheets(cboSheets.list(cboSheets.listindex).select
end sub





"aalam" wrote:

Hello all,
here is the problem that I'm experiencing. I have the an ComboBox1 inserted
from control toolbar, all I want is to be able to change the sheets by
clicking in the combobox like sheet1, sheet2, and sheet3. Only three sheets
will do for now. But I have problem populating the combobox with sheet names
lets call them sheet1..2 etc. How do I go about. It is fairly simple but how
is it done. ?I am using excel 2000 on XP Pro.

I have named the combobox to Sheet1 in the properties by right clicking on
it, now what.?

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
Combo problems Geoff Excel Discussion (Misc queries) 1 August 11th 08 11:50 AM
Combo Box List Problems robert inman via OfficeKB.com Excel Discussion (Misc queries) 3 May 5th 05 01:30 PM
Combo Box Problems Brad Excel Programming 0 April 12th 05 05:17 PM
List/Combo Box Setup Problems Phil Hageman[_3_] Excel Programming 3 April 12th 04 08:16 PM
Problems with combo boxes Jody[_4_] Excel Programming 1 December 31st 03 09:42 PM


All times are GMT +1. The time now is 01:54 PM.

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"