combobox: converting code snippet from VBA to VB 
Author Message
 combobox: converting code snippet from VBA to VB

Hi there,

I would like to convert a VBA code snippet to VB.

Here is my code snippet:

Private Sub Combo1_Click()
With Me.Combo1
    x = Len(.List(.ListIndex, 2)) - _
            Len(Application.WorksheetFunction. _
            Substitute(.List(.ListIndex, 2), "/", ""))
    Text = Application.WorksheetFunction. _
           Substitute(.List(.ListIndex, 2), "/", " und ", x)
    Text = Application.WorksheetFunction. _
           Substitute(Text, "/", ", ")
    Text = "This is  " & .List(.ListIndex, 0) & _
           " a lorem ipsum" & Text & " dummy text."
    End With
MsgBox Text

End Sub

Can you please tell me how you would write this in VB?



Thu, 25 Nov 2004 23:24:48 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. VBA Code to Convert in VB/PB

2. C++ code snippet to VB -- anyone?

3. Code Database Program - Store your code Snippets

4. Code Database Program- Store your code snippets

5. Converting .tableedit code from VBA to Javascript

6. Convert VB Automation code into VC++ code

7. Convert Clipper/Dbase code to VBA

8. Converting VB code to ASP code

9. Convert C Code to VB Code

10. VBA code to VB.Net code

11. VB code vs VBA code

12. samples code snippets?

 

 
Powered by phpBB® Forum Software