Results 1 to 4 of 4

Userform_initialize error Help

Threaded View

fokeiro Userform_initialize error Help 07-26-2012, 08:00 AM
romperstomper Re: Userform_initialize error... 07-26-2012, 08:09 AM
antoka05 Re: Userform_initialize error... 07-26-2012, 08:14 AM
fokeiro Thanks guys ill try it wheb i... 07-26-2012, 09:02 AM
  1. #1
    Registered User
    Join Date
    07-26-2012
    Location
    florida
    MS-Off Ver
    excel 2007
    Posts
    13

    Userform_initialize error Help

    How you guys doing , i been following this site for a while and always been able to find help here, you guys awesome !!!!

    Here is my issue i have a userform which shows all open workbooks, everything works fine i choose whatever workbook i want to work at , press ok and make it active, now i have this 2 codes on it

    i have this so my PERSONAL.xlsb dont show

    Dim wbk As Workbook
    For Each wbk In Workbooks
    If wbk.Windows(1).Visible = True Then
    Me.ComboBox1.AddItem wbk.Name
    End If
    Next

    also i have this one so the workbook where the form is doesn't show

    Dim wb1 As Workbook
        For Each wb In Workbooks
            If wb.Name <> ThisWorkbook.Name Then ComboBox1.AddItem wb.Name
        Next wb
        ComboBox1.ListInde

    now on this

    Private Sub UserForm_Initialize()
        Dim wb As Workbook
        For Each wb In Workbooks
            If wb.Name <> ThisWorkbook.Name Then ComboBox1.AddItem wb.Name
        Next wb
        ComboBox1.ListIndex = 0
    it works fine , if i replace everything with second code works fine but i cant manage to get them both together in
    userform_initalize
    so they both start.

    can anyone share any light on how to merge them ?
    Last edited by fokeiro; 07-26-2012 at 08:04 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1