Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,071
Default Need event macro to tab past a (calculated) cell

No. That simply says to do nothing if a multiple cell selection is made.
HTH Otto

"Jeremy" wrote in message
...
Many thanks... this is exactly what I needed. What is the purpose of the
first statement "If Target.Count 1 Then Exit Sub"? Does it just make the
routine stop each time a cell change happens?

Jeremy
==================================================
"Otto Moehrbach" wrote in message
...
Jeremy
I don't know much about what you want to do, but the following event
macro will select the cell in Column E whenever a cell in Column D is
selected. Does this help? HTH Otto
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Count 1 Then Exit Sub
If Target.Column = 4 Then
Application.EnableEvents = False
Target.Offset(, 1).Select
Application.EnableEvents = True
End If
End Sub


"Jeremy" wrote in message
...
I have an Excel 2003 List (aka Table in Excel 2007). There are some
protected (calculated) columns that I don't want users to enter data
into. But I can't protect the sheet, because that prevents users from
entering a new record at the bottom of the List.

Does anyone have a suggestion on how to deal with this? I'm thinking of
using an event macro invoked when user tabs out of say column C, which
makes the selection skip the cell in column D and go directly to the
cell in column E. I guess I'd have to use Worksheet.SelectionChange. But
I don't know how to do this..

Any help much appreciated!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sun a macro when a cell is calculated pontitt Excel Programming 1 July 7th 08 01:37 PM
Event Macro - On Cell Activate - Change Cell Format [email protected][_2_] Excel Programming 7 November 7th 07 03:36 AM
how to change a calculated cell to = the calculated value CAM Excel Discussion (Misc queries) 4 January 26th 06 05:26 PM
Change Event and Calculated cells tbieri Excel Programming 4 June 9th 04 06:07 PM
Click event on cell triggers a macro kris Excel Programming 2 November 13th 03 10:42 AM


All times are GMT +1. The time now is 10:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"