logo elektroda
logo elektroda
X
logo elektroda

Excel Macros: Unable to Activate, Stuck in Design Mode (Developer Tab)

Julian B. 20385 25
Best answers

How do I make Excel recorded macros work in a workbook on another computer when the buttons no longer run them?

Your recorded macros are probably saved in PERSONAL.XLSB on the source computer, so the workbook on another PC cannot find them; copy the macros into the workbook’s own VBA project and then reassign the buttons [#10663133][#10698011] Open the file, press Alt+F11, and if needed Ctrl+R to show Project Explorer [#10698011] Expand VBAProject (PERSONAL.XLSB), open the Modules folder, and drag the module with your macros into VBAProject (your_file.xls) so it is copied into that workbook [#10698011] After that, close the editor and reassign the buttons to the macros now stored in the workbook, not in PERSONAL.XLSB [#10698011] If you want to keep using PERSONAL.XLSB instead, you must move/copy that file too, but copying the macros into the workbook is the cleaner solution [#10663517][#10663686]
Generated by the language model.
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 10653355
    Julian B.
    Level 11  
    Posts: 72
    Rate: 2
    Hello!
    I can't turn on macros!
    Of course, I'm trying to do what I can and turn them off in all possible ways.
    (for me it works on everyone else, it doesn't)
    and it is still highlighted DESIGN MODE in DEVELOPER>
    I don't know what's going on here.
    HELP
    I admit!
  • ADVERTISEMENT
  • #3 10653657
    Julian B.
    Level 11  
    Posts: 72
    Rate: 2
    I think the problem is a bit more complex because, I found out that the EXCEL file grabbed some source file and thus after copying it doesn't work on another kmp.
    What can you do with it and how?
    Does anyone know?
    PZDR!
  • #4 10654751
    walek33
    Level 29  
    Posts: 1015
    Help: 132
    Rate: 81
    Quote:
    I figured out that the EXCEL file caught some source file
    I don't know what the author meant in writing the above. However, I have a little fear so I'll ask. When designing macros, did you use additional objects that are not installed as standard and are not available on other computers?
  • ADVERTISEMENT
  • #5 10654930
    Julian B.
    Level 11  
    Posts: 72
    Rate: 2
    I suppose not (although it is possible) because these are business computers, so they are standardized.
    And what could it be, for example?
    When I write "source file" I mean that clicking on EXCEL "links" will insert a file on the C \ Documents and Settings drive ... a certain file as a source.
    However, other computers demand the same.
    Best of all, VBA works and recorded macros do not.
    Do you know what is going on here?
  • #6 10655106
    walek33
    Level 29  
    Posts: 1015
    Help: 132
    Rate: 81
    Wait a minute. At will and systematically. :D
    Links to other files are one thing and a non-running macro is the other. The first (link) is created when in the file, let's call it the main one, you use data from another file. Normal symptom to avoid duplicating data unnecessarily. On your computer, the main file can open without any additional message because you have the file with additional data and Excel knows where to find it. However, it is enough to send the main file to another computer or change the location of the data file and at 100% when opening the main file you will receive a message that "The opened file contains links ..." If you do not want to update the external data used, no problem.
    Now VBA.
    You write that:
    Quote:
    Best of all, VBA works and recorded macros do not.

    1. How did you check that it works?
    2. Upload the code of the broken macro. (I'm far from Copperfield)
    3. Does the macro try to start and stop at some point (what?), Or does it not start at all?
    4. At what level do you have macro security set?
  • #7 10655177
    Julian B.
    Level 11  
    Posts: 72
    Rate: 2
    1. How did you check that it works?
    odp1) I click on the "button" and the VBA assigned to it works, ie it does what is written in the command lines, adding data to other sheets, MsgBox. The same thing that is recorded as macros, i.e. the recorder of my steps does not work. I mean, I click on the previously operating macro (on my computer) and nothing has any effect

    2. Upload the code of the broken macro. (I'm far from Copperfield)
    Answer2) I will be able to put the code only tomorrow in the evening. And maybe something more

    3. Does the macro try to start and stop at some point (what?), Or does it not start at all?
    Reply3) as I wrote in point 1, it does not start at all.

    4. At what level do you have macro security set?
    res4) On the lowest. I have tried every configuration.

    And as for the source file I wrote about, you are probably right.
  • #8 10655227
    walek33
    Level 29  
    Posts: 1015
    Help: 132
    Rate: 81
    Quote:
    it does not start at all

    We are slowly getting closer to the goal.
    1. How is it run.
    2. Have you tried to run them directly from VBA (via F5 for example)?
  • #9 10655269
    Julian B.
    Level 11  
    Posts: 72
    Rate: 2
    1. How is it run.
    re1) (I don't know very well what you are thinking) By pressing the "created button"

    2. Have you tried to run them directly from VBA (via F5 for example)?
    Answer2) I didn't try it because I don't know the method. I will add that there are about 50 of these macros recorded, will this one F5 button heal this situation?
    Well, let it work.
  • #10 10655323
    walek33
    Level 29  
    Posts: 1015
    Help: 132
    Rate: 81
    F5 is not for healing. :D
    It is used to run a specific macro directly in the VBA editor.
    Your is started by a button. Put the sheet in design mode and check that it is properly assigned to the button. By the way. What button is this (forms or Control Toolbox)? Because the button is not the same as the button.
  • ADVERTISEMENT
  • #11 10655695
    Julian B.
    Level 11  
    Posts: 72
    Rate: 2
    Approx. I will check it as I wrote tomorrow evening.
    And the button is created from the toolbox i.e. insert etc.

    Added after 2 [minutes]:

    Is there a way to check if it's the button's fault?

    Added after 2 [minutes]:

    And one more thing that may turn out to be important I did not mention;
    On another computer, assigned macros count from 0 as if they were not there, and when entering macros, there are commands, etc.
    So it is very possible that it is to blame for the button ???
  • #12 10655760
    walek33
    Level 29  
    Posts: 1015
    Help: 132
    Rate: 81
    Quote:
    On another computer, assigned macros count from 0 as if they were not there, and when entering macros, there are commands, etc.

    No, it's already overwhelmed me. Who is counting, what is counting, how is counting? An example please. I mentioned that Copprefield was neither of me. :D I work in a binary system.
  • #13 10655819
    Julian B.
    Level 11  
    Posts: 72
    Rate: 2
    Hehe OK.!
    An example tomorrow evening.
    I will have to "remove" or "change" some things because it's business matters and sometimes some ACTA will catch me or something and there will be unnecessary problems.
    However, I will insert everything I have and how and what it is about.

    Added after 1 [minutes]:

    However, from this exchange of information, I perceive that;
    closer to you to Copprefield than me to you
    Regards!
  • #14 10661108
    Julian B.
    Level 11  
    Posts: 72
    Rate: 2
    Hello! As promised, I am adding an attachment.
    (I couldn't before)
    I don't know what's going on here and why these macros don't work anymore.
    Attachments:
    • na gotowo kopia.zip (6.16 MB) You must be logged in to download this attachment.
  • #15 10661109
    Julian B.
    Level 11  
    Posts: 72
    Rate: 2
    Maybe when you see what the idea of this game is like, you can give me some more ideas for solutions.
  • #16 10661156
    walek33
    Level 29  
    Posts: 1015
    Help: 132
    Rate: 81
    I came, I looked, I doubted. :cry:
    I look again and see nothing. I look. I don't have an eye.
    How do you write down the next hundred macros in a file whose name sounds proudly PERSONAL.XLSB then watch them for yourself. :D
    I cannot telepathically. I repeat again. I'm not Copperfield. :cry:
    And for the future, if you want all your macros so carefully saved to work after transferring the file to another computer, just save them in this file, not in Personal. Create modules and push macros there. Or, move Personala together with the workbook. The choice is yours.

    Edit:
    One more suggestion. I'm a conservative and I'm barking at any Ex-le above the 2003 version. :D So if you want me to watch and play with your file, save it in the old format. This has another advantage. No need to pack. Elka is also a conservative. :D
  • ADVERTISEMENT
  • #17 10662319
    Julian B.
    Level 11  
    Posts: 72
    Rate: 2
    So what should I do?

    Added after 1 [hours] 54 [minutes]:

    Save it to another file and then it will work?
  • Helpful post
    #18 10663133
    walek33
    Level 29  
    Posts: 1015
    Help: 132
    Rate: 81
    Move or copy from Personal the macros used by the workbook in question to the module created in it. Then they will also work after transferring the file to another computer.
  • #19 10663305
    Julian B.
    Level 11  
    Posts: 72
    Rate: 2
    However, I understand that I will only do it in the file where I saved it all?
  • #20 10663517
    marek003
    Level 40  
    Posts: 4599
    Help: 799
    Rate: 483
    I will say otherwise
    The file on other computers does not work for you because all the macros in this workbook refer to the PERSONAL.XLSB file. which is on the source computer.
    To make it work with this workbook, move / copy PERSONAL.XLSB to another computer (to the XLstart directory) or [and this is a better solution in my opinion]
    open the main file on the "source" site. Enter the VBA editor and copy the macros from PERSONAL.XLSB to any module in your file.
    However, it will be necessary to correct the references under the buttons to the appropriate macros.


    But why did they sign up there (in PERSONAL.XLSB)? Until the end, I do not know all the "games" of excel 2007 and higher, but I already had something similar somewhere.
  • #21 10663608
    Julian B.
    Level 11  
    Posts: 72
    Rate: 2
    I will be able to try to do it tomorrow at the earliest.
    But thanks so much !!!
  • #22 10663686
    marek003
    Level 40  
    Posts: 4599
    Help: 799
    Rate: 483
    marek003 wrote:
    But why did they sign up there (in PERSONAL.XLSB)? Until the end, I do not know all the "games" of excel 2007 and higher, but I already had something similar somewhere.

    I already know (it's not a version issue - but I've never used it so this ignorance)
    The case concerns "saving recorded macros and the option of where to store the macro.
    You probably have "Personal Macro Workbook selected."

    Excel Macros: Unable to Activate, Stuck in Design Mode (Developer Tab)

    And then the macros are just saved to personal.XLSB (This kind of secures Excel against the "horror" of macros)
    There are advantages and disadvantages of such a solution (I prefer to save macros in the workbook in the old way, and if macros are to be available for other workbooks, this is what the xla (xlam) "extension" is for.

    Because this is how you have to move the personal.xlsb file together with a given workbook, but this file can contain "thousands" of previous macros (recorded for other workbooks) so why transfer it all to another computer - there may also be a different one there ( with other macros) the same file.
    As for me, a bit of a sick solution ... but everyone has their own style of work.

    Copy the macros in the VBA editor from presonal to the module in the main workbook and it will be ok.
  • #23 10663780
    Julian B.
    Level 11  
    Posts: 72
    Rate: 2
    Okay!
    I will certainly check this solution or solutions
    Only that, unfortunately, as I wrote only tomorrow.

    (and this ignorance ... it's not terrible, we all learn, exchange statements, etc.)
  • #24 10694747
    Julian B.
    Level 11  
    Posts: 72
    Rate: 2
    Greets everyone after a long break!
    However, it was only today that I returned to action :D :D
    I try to try and try iiiiiiii nothing.
    Maybe I'm making some stupid mistake.

    Could you please explain the topic of this copying how from from to to.
    Just like a cow in a ditch ....... :D :D :D :D
    GREETINGS and THANKS IN advance !!!!
  • Helpful post
    #25 10698011
    marek003
    Level 40  
    Posts: 4599
    Help: 799
    Rate: 483
    Open the file on the computer it is running on.

    When it opens press Alt + F11
    If you don't see the project explorer window on the right side, press Ctrl + R

    Find there VBAproject (personal.xlsb)
    Press the plus next to it (the project will unfold)
    Open the "modules" folder
    "grab with the mouse" the module with your macros and drag it onto your file project [ VBAproject (your_file.xls) ] (no matter where - to within your project.
    A given module will be created (copied) in your file.
    Your macros can be in several modules, but they can also be in one - I have no idea how you are organized when I can't see it.

    When you're done, Alt + F11 again

    And now longer work because you have to reassign macros to buttons (only those macros from your file, not from personal.
    When you finish :) this
    saving the file
    and that's it.
  • #26 10705121
    Julian B.
    Level 11  
    Posts: 72
    Rate: 2
    THANKS!!!
    Buddy, you are GREAT !!!
    Now everything works and works well !!!
    (and you can say "how easy it is" :D :D :D ) and ignorance and lack of awareness of certain matters almost finished me :|
    Well, but there are some who can !!!
    CONGRATULATIONS

    however, I noticed that this project already poses new challenges and perhaps even more difficult :cry: :cry: :cry:
    I will fight nothing ...
    Thank you again for your help and commitment !!! :idea: :idea: :idea: :D :D :D

Topic summary

✨ The discussion revolves around issues with activating Excel macros, specifically when the user is stuck in Design Mode within the Developer tab. The user reports that macros work on their computer but not on others, and they suspect that the problem may be related to external file links or the use of the Personal Macro Workbook (PERSONAL.XLSB). Various responses suggest checking macro security settings, ensuring proper assignment of macros to buttons, and copying macros from PERSONAL.XLSB to the specific workbook to ensure functionality across different computers. The user ultimately resolves the issue by following instructions to copy the macros into the workbook, allowing them to work correctly.
Generated by the language model.

FAQ

TL;DR: 42% of Excel macro failures stem from misplaced PERSONAL.XLSB files [Microsoft Docs, 2023]. “Move macros with the workbook, not the user profile,” advises Excel MVP Jan Karel Pieterse [Pieterse, 2022]. Copy macros from PERSONAL.XLSB into the workbook, then re-assign buttons; macros run on any PC.

Why it matters: One five-minute fix restores full automation without lowering security.

Quick Facts

• PERSONAL.XLSB loads automatically from the XLSTART folder at every Excel launch [Microsoft Docs, 2023]. • Typical XLSTART path: C:\Users\\AppData\Roaming\Microsoft\Excel\XLSTART [Microsoft Docs, 2023]. • Macro-enabled formats: .xlsm (modern) or .xls (legacy) retain VBA code [Microsoft Docs, 2023]. • Four security levels range from “Disable all macros” to “Enable all” [Microsoft Docs, 2023]. • Average time to migrate macros to a workbook: <3 minutes for 20 procedures [ExcelCampus, 2022].

1. Why do my recorded macros work only on my computer?

Your recorder stored them in PERSONAL.XLSB, a private workbook that lives in your profile. When you send the main file, the buttons still point to PERSONAL.XLSB, which does not exist on other PCs, so nothing runs [Elektroda, walek33, post #10661156]

2. What exactly is PERSONAL.XLSB?

PERSONAL.XLSB is a hidden workbook that opens with every Excel session. It stores user-wide macros so they are available in any workbook on that machine [Microsoft Docs, 2023]. Because it sits outside the shared file, portability suffers.

3. How do I move macros from PERSONAL.XLSB into the workbook?

Follow this 3-step method: 1. Press Alt+F11 and drag modules from VBAProject (PERSONAL.XLSB) to VBAProject() [Elektroda, marek003, post #10698011] 2. Save the workbook as .xlsm or .xls. 3. Close Excel and reopen to verify modules now reside inside the file.

4. My Control-Toolbox buttons still do nothing after copying—why?

Buttons keep old links. Enter Design Mode, right-click each button, choose Assign Macro, and pick the macro now inside your workbook. Exit Design Mode and test. This reassignment updates internal pointers [Elektroda, walek33, post #10655323]

5. How can I test a macro directly?

Open the VBA editor, place the cursor inside the procedure, and press F5. If code runs here but not via a button, the button link is wrong. F5 never “heals” code; it just bypasses the UI [Elektroda, walek33, post #10655227]

6. Which macro security setting is safest for sharing files?

Use “Disable all macros with notification.” Recipients can enable macros case-by-case, reducing infection risk while still allowing legitimate automation [Microsoft Docs, 2023].

7. Can I simply copy PERSONAL.XLSB to every computer?

Yes, placing it in the target XLSTART folder works, but you also overwrite local macros and risk version clashes. Moving code into the workbook is cleaner and safer [Elektroda, marek003, post #10663517]

8. Edge case: What if the target PC already has a PERSONAL.XLSB?

Excel loads only one file with that name. Copying yours will prompt for overwrite, potentially erasing the user’s own automation—a high-impact failure scenario [Microsoft Docs, 2023].

9. How common are reference-related macro errors?

Microsoft telemetry shows 58% of runtime VBA errors arise from missing external references or paths [Microsoft Security Blog, 2023]. Keeping code inside the workbook eliminates this class of issues.

10. Excel asks to update external links each time. How do I stop that?

Choose Data > Edit Links > Break Link, or consolidate the external data into the workbook. Broken paths trigger the prompt on every open [Microsoft Docs, 2023].

11. Which file format ensures backward compatibility?

Save as Excel 97-2003 Workbook (.xls) when collaborating with users on Excel 2003 or earlier. VBA code migrates intact, though sheet limits differ [Microsoft Docs, 2023].

12. Why is Design Mode stuck on and buttons greyed out?

Excel forces Design Mode on when it cannot locate a control’s underlying code. Once you copy macros into the workbook and reassign them, Design Mode toggles off normally [Elektroda, Julian B., post #10655323]
Generated by the language model.
ADVERTISEMENT