Closed Thread
Results 1 to 15 of 15

Cannot edit macro in hidden workbook

  1. #1
    Registered User
    Join Date
    02-09-2007
    Posts
    12

    Question Cannot edit macro in hidden workbook

    Using: Excel 2007

    When I try to delete old, unused macros, i get the following error message:
    "Cannot edit a macro on a hidden workbook. Unhide the workbook using the Unhide command".

    Sounds simple. But I can't find where the unhide command for the workbook is.

    Does anyone have any suggestions?

    thank you,
    Falala

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello debspecs,

    These macros are probably in your Personal.xlsb workbook. This workbook is hidden when you open a standard workbook. You can locate this workbook in the following directory: C:\Users\<username>\AppData\Roaming\Microsoft\Excel\XLSTART

    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    02-09-2007
    Posts
    12

    Thank you.

    I'm first reading this reply now. thank you for your quick response, and I will take your advice.

  4. #4
    Registered User
    Join Date
    11-26-2008
    Location
    New England
    MS-Off Ver
    2007
    Posts
    35

    Question [SOLVED]...and what can I do to change it to let me edit & delete?

    I found the file (PERSONAL.XLSB) and checked the properties.

    "Read Only" and "Hidden" are not checked. I still can't edit my macros.

    Ted
    (using word 2007)
    Last edited by TedH; 12-11-2008 at 09:31 AM.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You need to unhide the personal.xlsb

    On the View tab, in the Window group, click Hide.

    Edit the macros, then hide the workbook
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  6. #6
    Registered User
    Join Date
    11-26-2008
    Location
    New England
    MS-Off Ver
    2007
    Posts
    35

    got it~ thanks<EOM>

    got it~ thanks

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  8. #8
    Registered User
    Join Date
    02-23-2012
    Location
    Texas, US
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Cannot edit macro in hidden workbook

    This is really help. Work great. Thanks

  9. #9
    Registered User
    Join Date
    02-29-2012
    Location
    St. Johns, Arizona
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Cannot edit macro in hidden workbook

    Thank you for the great answers! This post has saved me a lot of time. I was just about ready to trash the workbook (but I have learned to save a master copy before making major changes) when I came across this. I get into trouble playing around with new things sometimes!

    --Bambi
    Last edited by GirlGeek123; 02-29-2012 at 09:58 AM. Reason: typo

  10. #10
    Registered User
    Join Date
    10-25-2012
    Location
    North East NJ
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Cannot edit macro in hidden workbook

    This saved my butt too, thanks.

  11. #11
    Registered User
    Join Date
    10-29-2017
    Location
    Iran, Tehran
    MS-Off Ver
    2016
    Posts
    1

    Smile Re: Cannot edit macro in hidden workbook

    Quote Originally Posted by royUK View Post
    You need to unhide the personal.xlsb

    On the View tab, in the Window group, click Hide.

    Edit the macros, then hide the workbook
    Thank you. very usefull!!

  12. #12
    Registered User
    Join Date
    02-12-2013
    Location
    Medellín, Colombia
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Cannot edit macro in hidden workbook

    Count me in as saved by this as well. Thanks a lot.

  13. #13
    Registered User
    Join Date
    09-19-2013
    Location
    Phoenix, Arizona
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Cannot edit macro in hidden workbook

    13 years later and still saving us all.

  14. #14
    Registered User
    Join Date
    02-14-2022
    Location
    Harmony, Maine
    MS-Off Ver
    Office 365
    Posts
    28

    Unhappy Re: Cannot edit macro in hidden workbook (Problem Persists)

    I'm having the same issue, but the solution isn't working.

    My PERSONAL workbook isn't hidden, but it is still locked for editing. When I open the personal workbook a temporary hidden personal book opens?

    I've also disabled my preview pane as that's what seemed to have worked for others.

    I'm rather new to macros and VBA as well as the personal workbook.

    Any thoughts?

    Thanks,
    Parker

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,367

    Re: Cannot edit macro in hidden workbook

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Want to run a macro before closing a workbook
    By rbhandair in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2008, 07:59 AM
  2. run a macro in the open workbook
    By khalid79m in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2008, 12:08 PM
  3. Personal Macro Workbook question
    By jayy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-13-2007, 01:22 PM
  4. Macro to copy cells from 1 workbook to another
    By geff in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-05-2007, 06:02 AM
  5. Call Macro from Workbook Variable
    By samshut in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2007, 01:03 PM

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