Excel 2010 Macro mysteriously stops running after command Workbooks.Open("WorkbookFullName")

Before I break down a workbook to send over....

Has anyone come across this odd phenomenon?

The Workbooks.Open ("Name") command opens and activates the named file.
At this point the macro just stops running.

The next command is to  activate a specific sheet within the open workbook.
Sheets("NamedSheet").activate

I have tried debugging the code.  It runs perfectly when run line by line.

I have tried transferring the command to a new sub routine and calling it from the original routine, to no avail.

is this a recognised phenomenon for excel VBA?  I have tried searching, without much illumination.

Thanks experts

David
David PhelopsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rory ArchibaldCommented:
Are you running the macro using a keyboard shortcut that involves the Shift key? If so, change it to not use the Shift (it's a bug).
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
David PhelopsAuthor Commented:
Oh. My. God!

I think that this is the first time I have actually cried with relief when coming across a solution to a VBA problem.  

Thanks so much.  you have helped save a man's sanity today!

Can I award 10,000 points?
0
Rory ArchibaldCommented:
No, you can't - but that kind of thank you is worth far more to me!

Glad I could help. :)

Rory
0
David PhelopsAuthor Commented:
Again, thanks Rory.  I look forward to more wisdom
David
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.