ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   control should go to next cell (https://www.excelbanter.com/excel-programming/398791-control-should-go-next-cell.html)

Mir Khan

control should go to next cell
 
Hi Experts i have a question...

I have an excel where column B has a drop down with Y,N, and NA in it in
each cell. now what i want is if option Y is chosen the control should go to
the next cell below it.

Thanks

JRForm

control should go to next cell
 
Mir Khan,

If you are not using the menu item DataValidation then you could use
activecell.offset(1,0).select


"Mir Khan" wrote:

Hi Experts i have a question...

I have an excel where column B has a drop down with Y,N, and NA in it in
each cell. now what i want is if option Y is chosen the control should go to
the next cell below it.

Thanks


JRForm

control should go to next cell
 
Mir Khan,

If you are not using the DataValidation method then try this

activecell.offset(1,0).select

"Mir Khan" wrote:

Hi Experts i have a question...

I have an excel where column B has a drop down with Y,N, and NA in it in
each cell. now what i want is if option Y is chosen the control should go to
the next cell below it.

Thanks


PaxtonRoadEnd

control should go to next cell
 
You could use the selection_change event of a worksheet

If target = "Y" then Selection.Offset(1,0)

Else

'Do Nothing

End If
--
BerbatovIsGod


"JRForm" wrote:

Mir Khan,

If you are not using the DataValidation method then try this

activecell.offset(1,0).select

"Mir Khan" wrote:

Hi Experts i have a question...

I have an excel where column B has a drop down with Y,N, and NA in it in
each cell. now what i want is if option Y is chosen the control should go to
the next cell below it.

Thanks



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com