Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default SKIPPING A COLUMN

HI ALL,

I have a VLOOKUP function that automatically fills in Column E for me, when I
put data into Column D. So how can I get Excel to automatically go to Column
F instead of Column E when I hit the TAB button?

Thanks!


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200510/1
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 903
Default SKIPPING A COLUMN

One way to skip over a cell (or a column) with the TAB key
is to protect the cell(s) and turn on protection. That would not
work for you if you are adding more information, like inserting rows.

Another way would be to use an Event Macro.
http://www.mvps.org/dmcritchie/excel/event.htm#ws_sc


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.column < 5 then exit sub
On error resume next 'MUST reenable events...
Application.EnableEvents = False
ActiveCell.Offset(0, 1).Select
Application.EnableEvents = True
End Sub
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"eternal_cat via OfficeKB.com" <u14645@uwe wrote in message news:55cc70c20d566@uwe...
HI ALL,

I have a VLOOKUP function that automatically fills in Column E for me, when I
put data into Column D. So how can I get Excel to automatically go to Column
F instead of Column E when I hit the TAB button?

Thanks!


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200510/1



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default SKIPPING A COLUMN

oK, and how do I do this?



David McRitchie wrote:
One way to skip over a cell (or a column) with the TAB key
is to protect the cell(s) and turn on protection. That would not
work for you if you are adding more information, like inserting rows.

Another way would be to use an Event Macro.
http://www.mvps.org/dmcritchie/excel/event.htm#ws_sc

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.column < 5 then exit sub
On error resume next 'MUST reenable events...
Application.EnableEvents = False
ActiveCell.Offset(0, 1).Select
Application.EnableEvents = True
End Sub
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

HI ALL,

[quoted text clipped - 3 lines]

Thanks!



--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200510/1
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default SKIPPING A COLUMN

Hi Eternal_cat,

As explained in the link supplied by David

http://www.mvps.org/dmcritchie/excel/event.htm#ws_sc


right-click the sheet tab and paste the code. Return to Excel with Alt-F11


---
Regards,
Norman



"eternal_cat via OfficeKB.com" <u14645@uwe wrote in message
news:55cd17522c8b2@uwe...
oK, and how do I do this?



David McRitchie wrote:
One way to skip over a cell (or a column) with the TAB key
is to protect the cell(s) and turn on protection. That would not
work for you if you are adding more information, like inserting rows.

Another way would be to use an Event Macro.
http://www.mvps.org/dmcritchie/excel/event.htm#ws_sc

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.column < 5 then exit sub
On error resume next 'MUST reenable events...
Application.EnableEvents = False
ActiveCell.Offset(0, 1).Select
Application.EnableEvents = True
End Sub
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

HI ALL,

[quoted text clipped - 3 lines]

Thanks!



--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200510/1



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default SKIPPING A COLUMN

nO, i WANTED TO GO TO THE NEXT CELL, SO SKIP E AND GO TO F. YUP. NOT THE NEXT
ROW.


Norman Jones wrote:
Hi Eternal_cat,

As explained in the link supplied by David

http://www.mvps.org/dmcritchie/excel/event.htm#ws_sc


right-click the sheet tab and paste the code. Return to Excel with Alt-F11

---
Regards,
Norman

oK, and how do I do this?

[quoted text clipped - 23 lines]

Thanks!



--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200510/1


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default SKIPPING A COLUMN

Hi Eternal_Cat,

Try:

'=================
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Columns("D:D")) Is Nothing Then
Target.Offset(0, 2).Select
End If
End Sub
'<<=================


---
Regards,
Norman


"eternal_cat via OfficeKB.com" <u14645@uwe wrote in message
news:55cf47fba1f30@uwe...
nO, i WANTED TO GO TO THE NEXT CELL, SO SKIP E AND GO TO F. YUP. NOT THE
NEXT
ROW.


Norman Jones wrote:
Hi Eternal_cat,

As explained in the link supplied by David

http://www.mvps.org/dmcritchie/excel/event.htm#ws_sc


right-click the sheet tab and paste the code. Return to Excel with Alt-F11

---
Regards,
Norman

oK, and how do I do this?

[quoted text clipped - 23 lines]

Thanks!



--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200510/1



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default SKIPPING A COLUMN

You could also place your "looked up" column somewhere else.
Key sorting data like postcodes can be very handy placed in the column
to the left, but I often place "looked up data" waaaaay over to the
right.

HTH
Geoff

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
Skipping every other column for an Average. Empy Excel Worksheet Functions 2 June 17th 08 10:34 PM
Need help in numbering a column while skipping lines Gary Reger Excel Worksheet Functions 3 December 21st 05 10:00 PM
SKIPPING A COLUMN eternal_cat via OfficeKB.com Excel Worksheet Functions 1 October 14th 05 06:26 AM
Skipping blank cells in a column... Ajit Excel Programming 1 November 12th 04 02:12 PM


All times are GMT +1. The time now is 10:09 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"