Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default VBA for Skipping Cells

Can someone tell me the code for skipping all locked cells; using the tab key
to skip to unlocked cells . . . thanks for your time . . .
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default TAB BUTTON - VBA TO SKIP CELLS

Could i not set this up with this formula but use the "Tab" Key instead of
Cntrl-E

"Gary''s Student" wrote:

If you assign a shortcut key like CNTRL-e to:

Sub nonlocked()
'
' gsnuxx
'
startit = False
For Each r In ActiveSheet.UsedRange
If startit Then
If r.Locked Then
Else
r.Select
Exit Sub
End If
End If
If Intersect(r, ActiveCell) Is Nothing Then
Else
startit = True
End If
Next
End Sub

You can "tab" over locked cells by touching CNTRL-e rather than the TAB key.
--
Gary''s Student - gsnu200770


"MarthaSue" wrote:

Can someone tell me the code for skipping all locked cells; using the tab key
to skip to unlocked cells . . . thanks for your time . . .

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
reference row on another sheet skipping zeros but not skipping li. Brennan Downes Excel Discussion (Misc queries) 2 April 2nd 23 01:28 PM
Sum and skipping cells art Excel Worksheet Functions 2 September 19th 08 05:02 AM
Skipping Cells CellSkipper Excel Worksheet Functions 5 January 25th 08 09:42 PM
skipping cells [email protected] Excel Programming 3 May 15th 07 12:48 PM
skipping cells just1creation Excel Discussion (Misc queries) 2 June 27th 06 05:32 PM


All times are GMT +1. The time now is 08:07 PM.

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

About Us

"It's about Microsoft Excel"