MrExcel Message Board


Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Mar 30th, 2004, 06:56 PM   #1
Joy Caldwell
 
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 1
Default control cell tab order

In an archived thread, I found a response to another user's question on how to control the cell tab order on a locked work sheet. However, I can't seem to find the VBA example called out in the posting. Can someone help me locate this file?

CellTabControl_VBA.xls

Thanks,
Joy
Joy Caldwell is offline   Reply With Quote
Old Mar 30th, 2004, 07:17 PM   #2
TryingToLearn
 
TryingToLearn's Avatar
 
Join Date: Sep 2003
Location: NJ
Posts: 666
Default Re: control cell tab order

Not sure where that might be but this is what I use:

Code:
Option Explicit
Public aut As String
Public curmove, ckwkly As Boolean
Public curdirec As Long

Private Sub Worksheet_Activate()
    curmove = Application.MoveAfterReturn
    curdirec = Application.MoveAfterReturnDirection
    Application.MoveAfterReturn = True
    Application.MoveAfterReturnDirection = xlDown
    aut = Application.EnableAutoComplete
    Application.EnableAutoComplete = False
End Sub


Private Sub Worksheet_Deactivate()
        Application.MoveAfterReturnDirection = curdirec
        Application.MoveAfterReturn = curmove
        If aut <> Empty Then Application.EnableAutoComplete = aut
End Sub
HTH
__________________
-Bob [XL2003 on XP] Slowly coming out of the Stone Age and trying to trade in my abacus.
TryingToLearn is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT +1. The time now is 05:13 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 by MrExcel Consulting.