Solved

Can't view Excel Macro Code using Alt-F11

Posted on 2012-03-15
5
458 Views
Last Modified: 2012-03-15
This is a strange one.  I am using Excel 2003, the OS is XP, and I've recorded a Macro without any problem.  I can also run it without any problem.

My issue is that I can't view the code.  The Macro ought to be viewable under Module1 but the Immediate pane on the right is blank.

Any help would be appreciated.
0
Comment
Question by:esemmoc
5 Comments
 
LVL 12

Expert Comment

by:kgerb
ID: 37726577
hmmm...Are you saving the macro to your personal macro workbook?  Open the project explorer (Ctrl+r) and see if there are any other projects loaded where the macro might be stored.

Kyle
0
 
LVL 8

Expert Comment

by:2toria
ID: 37726579
Hi there.

Can you take a screenshot of what you see in the IDE and post it on here?  Might help diagnose the problem

Matt
0
 
LVL 12

Accepted Solution

by:
kgerb earned 350 total points
ID: 37726594
BTW, the immediate pane doesn't really have anything to do with your recorded macro.  The immediate window is used for running individual lines of code outside a subroutine.  It is also used for debugging but not for recorded macros.

Do you have the immediate window so large that it's covering up your code in the general code pane?

Kyle
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 37726619
Can you see the code when you do Tools|Macro|Macros|Edit|<select your macro>|Edit ?
0
 

Author Closing Comment

by:esemmoc
ID: 37726715
Yes, somehow the immediate pane was selected and I never realized that it was covering up the General pane.  When I closed it the General pane was visible.  

This affected any navigation that was intended to list out code e.g.   Tools --> Macros --> Step Into.

Thanks.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question