?
Solved

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

Posted on 2013-01-20
2
Medium Priority
?
483 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 18

Accepted Solution

by:
Curt Lindstrom earned 2000 total points
ID: 38799335
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
ID: 38799344
You guys make it too easy!

Thanks alot,
Michael
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

719 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