Posts by tblondet

    Re: Delete All Names


    This is exactly the problem but my problem is that I don't know to what I should rename the corrupted names...


    Whatever I try gives me "This name is not valid"....


    Here are examples of what I tried (as new names for corrupted names):
    R1C1
    =R1C1
    =AEMS!R1C1
    ='AEMS'!R1C1
    A2
    =A2
    =AEMSA2
    ='AEMS'!A2
    AEMSA2
    'AEMS'!A2
    Bobby


    .....................

    Re: Delete All Names


    Thank you for your answer but the macro breaks at the first n.delete


    The error is: "That name is not valid"


    And I can't upload the file sorry....


    I guess my question is just how to rename corrupted names with the R1C1 reference style using Name Manager...... If anyone is familiar with Name Manager...


    Best and thanks again for the help,


    Thomas

    Re: Delete All Names


    This is better than my first macro as it delete ALL the regular names at once.


    Nevertheless, I am still having the other names that name manager finds and still can't delete them.


    Best,


    Thomas

    Hi,


    I have an excel file crashing because of corrupted names.
    I used the following macro:

    Code
    Sub DeleteAllNames()
    Dim nm As Name
    On Error Resume Next
    For Each nm In ThisWorkbook.Names
        If nm = "Print_Titles" Then Resume Next
        If nm = "Print_Areas" Then Resume Next
            nm.Delete
    Next nm
    On Error GoTo 0
    End Sub


    I then used the name manager to delete hidden names.


    Unfortunately some of the names are corrupted...


    Name Manager prompts me to change the reference style to R1C1 to rename those corrupted names... but I tried every combination to rename them, but it won't work.......


    Here are examples of what I tried (as new names for corrupted names):
    R1C1
    =R1C1
    =AEMS!R1C1
    ='AEMS'!R1C1
    A2
    =A2
    =AEMSA2
    ='AEMS'!A2
    AEMSA2
    'AEMS'!A2
    Bobby............................ Pretty much everything I could think of....


    Any ideas ??? Would be great as my entire model crashes and is due soon....

    Re: Delete All Names


    Roy,


    Do you know how to insert two if statements in the code to prevent it from deleting the Print_Area and Print_Titles names?


    I am kind of stuck on how to insert a second logical test!


    The highlighted part is what's not working - very easy one for you I am sure !


    Again thanks,


    Thomas


    Re: Delete All Names


    That's great Roy, it finally worked.
    I deleted the rest manually but I still have just few of them that are detected by name manager (around 20).
    Especially one in many worksheet that finishes by the letter r... (For example I.!r, II.!r...)


    Do you guys have a clue on how to force name manager to delete these 20 remaining names?


    But still it's a big positive move, thank you Roy!

    Re: Delete All Names


    Roy,


    I am using it on a regular excel spreadsheet (the workbook is quite big though)


    It's weird because when I read what people say on the Internet, the macro seems to work for them too.


    I can't upload my one sheet TEST zipped file as it says it's too big...


    Can I send it to you ?

    To delete all names, somebody proposes the following solution:


    Use Tools > Options > Transition
    Make sure that you have the / in the Microsoft Excel menu or help key
    Put a dot in Lotus 123 Help
    OK


    Then use:
    /rnr


    What does he means by then use /rnr??? I tried to write /rnr in the microsoft excel menu or help key and pressed entered but got the error "separator or menu key must be one character"....


    Another person advised to use the following macro:


    Code
    Sub DeleteAllNames()
    Dim name As name
        For Each name In Names
        name.Delete
        Next name
    End Sub


    I got the error: "That name is not valid"


    Help would be greatly appreciated !

    Hi,


    I looked on the internet for the solution but none of the one presented (macros) are working and I can't have the name manager delete all names at once.


    I am trying to find a solution to delete all names in one shot to avoid the problem: "A formula or sheet you want to move or copy contains the name 'a', which already exist on the destination worksheet. Do you want to use this version of the name?" when copying a sheet.


    Thank you for your help,


    Thomas

    Re: Cell Selection Formula


    If I can participate to that debate ;) , if you want to use the choose function, you have to make sure A1<4, which gives:
    =IF(AND(B1<>"",B1<4),CHOOSE(B1,B2,B3,B4),"")

    Re: Can't Display Clip Art On Calculation


    Hi Roy,


    Here is the code I used:


    The part I highlighted in red used to be:

    Code
    Worksheets(Sheet9.Name).calculate


    This worksheet (Sheet9.Name) contains graphs.


    Thank you for your help,


    Thomas