Solved

vba - move selection right on enter during workbook open event and reset on close

Posted on 2013-01-20
2
470 Views
Last Modified: 2013-01-20
Hello Experts,

Is there an application event I can had at workbook open that will move the cursor to the right instead of down after enter is depressed. And on Workbook close event, have it switch it back to move cursor down.

I need it for this workbook and want to make it easier than having the end-user struggle with the cursor moving in the wrong directioin or having them change the advanced settings and switch it back.

I would need this to work in 2003 and 2010 versions.

Thanks for any advice / help,
mike637
0
Comment
Question by:mike637
2 Comments
 
LVL 18

Accepted Solution

by:
Curt Lindstrom earned 500 total points
Comment Utility
Try this as Workbook macros:

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.MoveAfterReturnDirection = xlDown
End Sub

Private Sub Workbook_Open()
Application.MoveAfterReturnDirection = xlToRight
End Sub

Open in new window


Cheers,
Curt
0
 

Author Closing Comment

by:mike637
Comment Utility
You guys make it too easy!

Thanks alot,
Michael
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now