#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Pointers??


G'day,
this q is also posted elsewhere, but all help needed...I am trying
to set a pointer so that when data is added to a blank cell the next
blank cell is selected. (not nesscarily the next cell in turn)

Thanx

JC


--
OzziJC
------------------------------------------------------------------------
OzziJC's Profile: http://www.excelforum.com/member.php...o&userid=24517
View this thread: http://www.excelforum.com/showthread...hreadid=381132

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 233
Default Pointers??

If you mean data entry flow, you can archive that with:

locking all cells that are not data entry,
protecting the sheet
now you can TAB through all unlocked cells.

BTW Excel tabs from left to right and then down.

Note that while actually entering something in a cell, ALL OTHER
ACTIONS ARE SUSPENDED. So actually doing something while editing in a
cell is impossoble in XL.

DM Unseen

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 121
Default Pointers??

Hi, try this in the worksheet module:

Private Sub Worksheet_Change(ByVal Target As Range)
Target.End(xlDown).Offset(1, 0).Select
End Sub

"OzziJC" wrote in
message ...

G'day,
this q is also posted elsewhere, but all help needed...I am trying
to set a pointer so that when data is added to a blank cell the next
blank cell is selected. (not nesscarily the next cell in turn)

Thanx

JC


--
OzziJC
------------------------------------------------------------------------
OzziJC's Profile:
http://www.excelforum.com/member.php...o&userid=24517
View this thread: http://www.excelforum.com/showthread...hreadid=381132



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Pointers??


Have already locked sheet it is in the TAB direction i am trying to
change. ie some times i need to be able to press TAB and move down,
other times i can tab to right. Thought there might by somethging to
direct tab function to next cell required rather than default
setting..

Thanx

JC


--
OzziJC
------------------------------------------------------------------------
OzziJC's Profile: http://www.excelforum.com/member.php...o&userid=24517
View this thread: http://www.excelforum.com/showthread...hreadid=381132

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Pointers??

I doubt that there are any settings that will tab left sometimes and
othertimes tab down without you specifying when the change should be made.
You might select the cells in the order you want to tab to them, then if you
tab within the selection, the order will be maintained.

--
Regards,
Tom Ogilvy

"OzziJC" wrote in
message ...

Have already locked sheet it is in the TAB direction i am trying to
change. ie some times i need to be able to press TAB and move down,
other times i can tab to right. Thought there might by somethging to
direct tab function to next cell required rather than default
setting..

Thanx

JC


--
OzziJC
------------------------------------------------------------------------
OzziJC's Profile:

http://www.excelforum.com/member.php...o&userid=24517
View this thread: http://www.excelforum.com/showthread...hreadid=381132





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 121
Default Pointers??

JC,

What was wrong with my solution, and using enter or arrow key? I tested it
and it worked. Was there some background to this which expanded on the
circumstances, but appeared in a different post?

Thanks for shedding light.

Bill


"OzziJC" wrote in
message ...

Have already locked sheet it is in the TAB direction i am trying to
change. ie some times i need to be able to press TAB and move down,
other times i can tab to right. Thought there might by somethging to
direct tab function to next cell required rather than default
setting..

Thanx

JC


--
OzziJC
------------------------------------------------------------------------
OzziJC's Profile:
http://www.excelforum.com/member.php...o&userid=24517
View this thread: http://www.excelforum.com/showthread...hreadid=381132



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 233
Default Pointers??

Bill,

I think your solution implied the next cell to change is 1 below the
edited cell.

That said, your soluition can be edited to help Ozzi with his quest:

Ozzi,

You cannot tell excel for Each Cell where to go to next (as Tom
Stated).

Using Tom's idea you could write something like

Range("A1,C5,B9,A2").Select

After this TAB will follow your cell order (so first A1 then C5).

Bill's solution would be something like:

Private Sub Worksheet_Change(ByVal Target As Range)
Dim strNewCell as string
Select case Target.Address
case "A1" strNewCell = "C5"
case "C5" strNewCell = "B9"
end select

Range(strNewCell).Select

End Sub

Note this way has more possibilities, but needs more code

DM Unseen

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 121
Default Pointers??

not so ... although I did pick one direction (down) I do go past every
non-empty cell on the way down to the next blank cell. Thanks for hanging
with this DM (do you go by another name ? :-) , I am learning the ropes
here...

Bill

if you
"DM Unseen" wrote in message
oups.com...
Bill,

I think your solution implied the next cell to change is 1 below the
edited cell.

That said, your soluition can be edited to help Ozzi with his quest:

Ozzi,

You cannot tell excel for Each Cell where to go to next (as Tom
Stated).

Using Tom's idea you could write something like

Range("A1,C5,B9,A2").Select

After this TAB will follow your cell order (so first A1 then C5).

Bill's solution would be something like:

Private Sub Worksheet_Change(ByVal Target As Range)
Dim strNewCell as string
Select case Target.Address
case "A1" strNewCell = "C5"
case "C5" strNewCell = "B9"
end select

Range(strNewCell).Select

End Sub

Note this way has more possibilities, but needs more code

DM Unseen



  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 233
Default Pointers??

Bill,
sorry you're right your code skips non emtpy cells downwards.

Stll, I suspect Ozzi looks for a TAB order in cell editing

DM Unseen AKA M. Evers (I just love my nick, and since I use google I
have no sig so I keep it short)

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
Mouse Pointers Charles S Excel Discussion (Misc queries) 2 July 11th 07 09:50 PM
need some pointers golem New Users to Excel 2 April 27th 07 11:05 PM
Pointers?? OzziJC Excel Discussion (Misc queries) 2 June 22nd 05 04:12 PM
In excel pointers should be availible Mike@Delphi Excel Worksheet Functions 2 March 31st 05 03:13 PM
Pointers to appropriate functions Chris Excel Programming 2 October 25th 04 11:56 PM


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

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"