+ Reply to Thread
Results 1 to 11 of 11

How can i find the macro

Hybrid View

  1. #1
    Registered User
    Join Date
    12-04-2007
    Posts
    5

    How can i find the macro

    Hello

    I have an excel document that everytime i open it, it asks me if i want to use it with or without macros. I havent used any macros in the document, so i cant see why it should ask for that.

    Is there a way to see macro that should be there or disable the macros in the document so it wont ask taht question

    Thanks
    Thomas G
    Last edited by VBA Noob; 12-04-2007 at 05:39 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    See if link helps

    http://exceltips.vitalnews.com/Pages...om_Macros.html

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    12-04-2007
    Posts
    5

    Question

    It didnt help. i dont have any "modeule folders" so it cant be that

    What else could it be ?

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    See if this link helps

    Deleting All VBA Code In A Project

    VBA Noob

  5. #5
    Registered User
    Join Date
    12-04-2007
    Posts
    5
    Hej

    Not much of this makes any sence to me. Mostly becourse my english is lagging a bit, and second that im not very good at programming anything :p

    i guess whe it should do is this ?

    Deleting All VBA Code In A Project

    This code will delete ALL VBA code in a VBProject.
        Sub DeleteAllVBACode()
            Dim VBProj As VBIDE.VBProject
            Dim VBComp As VBIDE.VBComponent
            Dim CodeMod As VBIDE.CodeModule
            
            Set VBProj = ActiveWorkbook.VBProject
            
            For Each VBComp In VBProj.VBComponents
                If VBComp.Type = vbext_ct_Document Then
                    Set CodeMod = VBComp.CodeModule
                    With CodeMod
                        .DeleteLines 1, .CountOfLines
                    End With
                Else
                    VBProj.VBComponents.Remove VBComp
                End If
            Next VBComp
        End Sub
    but where should i put it, and does it needs to be compiled or something like that ?

    I could upload the file to here if u maybe have time to take a look at it ?

    /Thomas
    Last edited by Thomas_G; 12-04-2007 at 06:19 PM.

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Please read forum rules below and then wrap your code as per rule 5

    VBA Noob

  7. #7
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Thanks for wrapping code

    If you like send me a private message with your e-mail address and I will reply so you can send me the file

    or post the file here and I'll take a look

    VBA Noob

+ Reply to Thread

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