Consulting

Results 1 to 4 of 4

Thread: Solved: 2 VBA-Projects named the same after saving/opening file

  1. #1

    Solved: 2 VBA-Projects named the same after saving/opening file

    Hi everyone! I get a strange thing from this sub. When saving as Range("V_50200").Value and opening the same workbook I get 2(!) VBA-Projects in the VBA editor named Range("V_50200").Value! Allthough: Only 1 workbook is open.

    The sheet icons for one of the projects are also hilighted in some neon blue. It also seems to slow the update of the whole application a bit (it seem anyway).

    How on Earth can this be?


    [VBA]Sub SaveThis3()
    Dim wb As Workbook
    Set wb = ActiveWorkbook

    If Range("V_10300") = True Then

    If UCase(wb.FullName) = UCase(Range("V_50100").Value) Then
    ActiveWorkbook.SaveAs Range("V_50200").Value
    Workbooks.Open wb.FullName
    Else
    wb.Save
    End If

    Else
    MsgBox (UCase("Cannot save - title is missing!"))
    Range("EXP_1010").Select

    End If

    Set wb = Nothing
    End Sub[/VBA]

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I get this all the time. It is often attributed to an addin, I forget which one, but I have just learned to live with it.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Ok! If you can live with it - I will. Anyway it goes away after having saved properly. Thanks man!

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    One thing to be aware of. If saving the workbook from within VBE (probably not a concern for you), make sure you activate the correct version.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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