#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 59
Default Cell Wrap

Hello,

Is there a way to prevent tabbing past a certain point in a spreadsheet?

For example, if my sheet goes from column A to column N, can I block all
cursur movement beyond column N? I am trying to get it to automatically wrap
back to column A when column N is reached.

Thank you
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Cell Wrap

Try this:-

Right click the sheet tab , view code anf paste this in:-

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Selection.Column 14 Then
Cells(ActiveCell.Row + 1, 1).Select
End If
End Sub

Mike

"nabanco" wrote:

Hello,

Is there a way to prevent tabbing past a certain point in a spreadsheet?

For example, if my sheet goes from column A to column N, can I block all
cursur movement beyond column N? I am trying to get it to automatically wrap
back to column A when column N is reached.

Thank you

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 140
Default Cell Wrap

could also try unlocking the cells you want users to access ie Col A - col N

Select Col A - N - Format/Cells/Protection/uncheck Locked
then Password protect the sheet, and ensure you uncheck Select locked cells

HTH

"nabanco" wrote:

Hello,

Is there a way to prevent tabbing past a certain point in a spreadsheet?

For example, if my sheet goes from column A to column N, can I block all
cursur movement beyond column N? I am trying to get it to automatically wrap
back to column A when column N is reached.

Thank you

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 59
Default Cell Wrap

Thanks Mike, it worked but I have no idea why.

If I were to use this same formula in another worksheet, what section of the
below formula would I change to tell excel to wrap at column K or Z?

"Mike H" wrote:

Try this:-

Right click the sheet tab , view code anf paste this in:-

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Selection.Column 14 Then
Cells(ActiveCell.Row + 1, 1).Select
End If
End Sub

Mike

"nabanco" wrote:

Hello,

Is there a way to prevent tabbing past a certain point in a spreadsheet?

For example, if my sheet goes from column A to column N, can I block all
cursur movement beyond column N? I am trying to get it to automatically wrap
back to column A when column N is reached.

Thank you

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Cell Wrap

N is the 14th letter of the alphabet, so you would need to change this
line:

If Selection.Column 14 Then

to suit the column number you want to wrap at.

You could also hide the columns beyond where you want to wrap, to make
it more obvious.

Hope this helps.

Pete


On Jun 19, 1:58 pm, nabanco wrote:
Thanks Mike, it worked but I have no idea why.

If I were to use this same formula in another worksheet, what section of the
below formula would I change to tell excel to wrap at column K or Z?



"Mike H" wrote:
Try this:-


Right click the sheet tab , view code anf paste this in:-


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Selection.Column 14 Then
Cells(ActiveCell.Row + 1, 1).Select
End If
End Sub


Mike


"nabanco" wrote:


Hello,


Is there a way to prevent tabbing past a certain point in a spreadsheet?


For example, if my sheet goes from column A to column N, can I block all
cursur movement beyond column N? I am trying to get it to automatically wrap
back to column A when column N is reached.


Thank you- Hide quoted text -


- Show quoted text -



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
Conditional Formatting question (if cell = 0, wrap cell in quotes) Mo2 New Users to Excel 6 May 11th 07 11:06 PM
Why won't text in cell wrap. Cell format set to wrap. DRB Excel Discussion (Misc queries) 2 September 28th 06 08:27 PM
cell won't wrap text GrHopp Excel Discussion (Misc queries) 1 November 18th 05 09:54 PM
wrap cell zikel Excel Discussion (Misc queries) 1 July 4th 05 08:44 PM
####### within a wrap text cell. OrlandoJayHu Excel Discussion (Misc queries) 2 May 18th 05 08:55 PM


All times are GMT +1. The time now is 04:28 AM.

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"