Solved

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

Posted on 2013-01-20
2
480 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 500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

751 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