+ Reply to Thread
Results 1 to 13 of 13

Macro seems to mess up several Excel sheets

  1. #1
    Registered User
    Join Date
    02-28-2018
    Location
    Ohio
    MS-Off Ver
    2016
    Posts
    24

    Macro seems to mess up several Excel sheets

    After using two macros on 2 workbooks and saving them to the personal macro workbook; often my documents are blank when opened and I have to go to review and accessibility to view them. It's been doing this for 2 months at least often.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: Macro seems to mess up several Excel sheets

    How do you save two workbooks to your personal macro workbook?

  3. #3
    Registered User
    Join Date
    02-28-2018
    Location
    Ohio
    MS-Off Ver
    2016
    Posts
    24

    Re: Macro seems to mess up several Excel sheets

    When you go to start a macro; it only gives you three options. I think technically I have 4 saved under personal macro and I
    can't delete two of them because it says it's on a hidden workbook. That's not a main issue though.

  4. #4
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,347

    Re: Macro seems to mess up several Excel sheets

    maybe you want to upload this file that is causing you problems so we can see what might be wrong.
    If you want something done right... find a forum and ask an online expert.

    Time flies like an arrow. Fruit flies like a banana.

  5. #5
    Registered User
    Join Date
    02-28-2018
    Location
    Ohio
    MS-Off Ver
    2016
    Posts
    24

    Re: Macro seems to mess up several Excel sheets

    It should be attached. Under Advance A is where I have one. Thanks
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,347

    Re: Macro seems to mess up several Excel sheets

    This is just an xlsx - ie no code.
    I presume you have a macro in your personal workbook or your "two workbooks"?

  7. #7
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: Macro seems to mess up several Excel sheets

    When you are recording a macro, you are asked if you want to save that macro in the personal macro workbook. The macro will not be saved in the workbook that you recorded the macro. You can run a macro from the personal macro workbook on any open workbook on your computer.

    If you open the workbook from a different computer, you will not find the macro, you would have to copy the code from your personal macro workbook to the other computers personal macro workbook.

  8. #8
    Registered User
    Join Date
    02-28-2018
    Location
    Ohio
    MS-Off Ver
    2016
    Posts
    24

    Re: Macro seems to mess up several Excel sheets

    Here's the code:
    Sub AdvanceA()
    '
    ' AdvanceA Macro
    '
    ' Keyboard Shortcut: Ctrl+Shift+A
    '
    Range("B4").Select
    ActiveCell.FormulaR1C1 = "14788-115696"
    Range("B4").Select
    ActiveCell.FormulaR1C1 = "14788-"
    Range("B5").Select
    ActiveWindow.WindowState = xlMaximized
    ActiveCell.FormulaR1C1 = "'14788-"
    Range("B6").Select
    ActiveWindow.WindowState = xlMaximized
    ActiveCell.FormulaR1C1 = "14788-"
    Range("B7").Select
    ActiveCell.FormulaR1C1 = "14788-"
    Range("B8").Select
    ActiveWindow.WindowState = xlMaximized
    ActiveCell.FormulaR1C1 = "14788-"
    Range("B9").Select
    ActiveWindow.WindowState = xlMaximized
    ActiveCell.FormulaR1C1 = "14788-"
    Range("B10").Select
    ActiveCell.FormulaR1C1 = "14788-"
    Range("B11").Select
    ActiveCell.FormulaR1C1 = "14788-"
    Range("D4:D11").Select
    Selection.ClearContents
    Range("A4:A11").Select
    Selection.ClearContents
    Range("A1").Select
    ActiveCell.FormulaR1C1 = "Advance Auto Parts //18 statement"
    Range("A2").Select
    End Sub

  9. #9
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: Macro seems to mess up several Excel sheets

    What is the question?

  10. #10
    Registered User
    Join Date
    02-28-2018
    Location
    Ohio
    MS-Off Ver
    2016
    Posts
    24

    Re: Macro seems to mess up several Excel sheets

    After using two macros on 2 workbooks and saving them to the personal macro workbook; often my documents are blank when opened and I have to go to review and accessibility to view them. It's been doing this for 2 months at least often and don't want to be doing this.

  11. #11
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: Macro seems to mess up several Excel sheets

    Okay, the problem is the confusion when you say you are "saving 2 workbooks to the personal macro workbook", you don't save workbooks to the personal macro workbook, you only save macros to that workbook.

  12. #12
    Registered User
    Join Date
    02-28-2018
    Location
    Ohio
    MS-Off Ver
    2016
    Posts
    24

    Re: Macro seems to mess up several Excel sheets

    I'm trying to find a solution. Do you think that will solve it?
    I found out how to delete others too because originally I couldn't delete two of them at least because it says it's on a hidden workbook.

  13. #13
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: Macro seems to mess up several Excel sheets

    I did not supply a solution, just a statement on why we are having issues answering the question.

    That being said...

    The personal macro workbook is a hidden workbook used to save macros. You should not be opening it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] fill down macro that makes a mess of my dates
    By scottiex in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-23-2016, 03:37 PM
  2. [SOLVED] Macro seem to be working but make mess with the format.
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-19-2016, 06:36 PM
  3. Macro mess with the date formatting
    By radicaled in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-24-2014, 09:04 AM
  4. Excel Forum is a complicated mess.
    By dJohnActor in forum Hello..Introduce yourself
    Replies: 3
    Last Post: 10-22-2012, 04:00 AM
  5. Is Excel is now going out of it's way to mess me around?
    By Willot in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-07-2006, 08:20 PM
  6. [SOLVED] Quickbooks exports to Excel, cleaning up the mess afterwards
    By Mick Warren, TechniCater in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-25-2006, 02:15 PM
  7. [SOLVED] Does 2 error handlers mess up excel?
    By Nicole Seibert in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-05-2006, 06:15 PM

Tags for this Thread

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