Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've gotten some advice about how use the code below to populate ComboBox1
with letters instead of the numbers as below using the Chr() function, but I can't make heads or tails of where to put it. I'd appreciate any help. Private Sub UserForm_Initialize() Dim iCtr As Long For iCtr = 1 To 10 Me.ComboBox1.AddItem iCtr Next iCtr End Sub |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Are you asking where to put Char() or the code? -- I Maycotte ------------------------------------------------------------------------ I Maycotte's Profile: http://www.excelforum.com/member.php...o&userid=35604 View this thread: http://www.excelforum.com/showthread...hreadid=556175 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Just where the Char() goes. Thanks. "I Maycotte" wrote: Are you asking where to put Char() or the code? -- I Maycotte ------------------------------------------------------------------------ I Maycotte's Profile: http://www.excelforum.com/member.php...o&userid=35604 View this thread: http://www.excelforum.com/showthread...hreadid=556175 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try
Dim N As Long For N = Asc("A") To Asc("Z") Me.ComboBox1.AddItem Chr(N) Next N -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "michaelberrier" wrote in message ... I've gotten some advice about how use the code below to populate ComboBox1 with letters instead of the numbers as below using the Chr() function, but I can't make heads or tails of where to put it. I'd appreciate any help. Private Sub UserForm_Initialize() Dim iCtr As Long For iCtr = 1 To 10 Me.ComboBox1.AddItem iCtr Next iCtr End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Userform Initialize & combo box values | Excel Discussion (Misc queries) | |||
initialize userform, using a sub | Excel Programming | |||
UserForm Initialize event doesn't fire reliably | Excel Programming | |||
Qn: Define a variable in Initialize for Userform | Excel Programming | |||
Userform disappears when you try to initialize from a command button | Excel Programming |