Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
When I click on the finished button on my dialog box I would like the focus
to move left by 1 cell. So if cell E4 is active I want cell D4 to become active. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you dialog box is closed by you clicking a button there will be
code to close it i presume. Therefore make the last line of the code, sheets("sheet1").range("d4").activate or activecell.offset(0,-1).select |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
G'day
If you don't know where the cursor is going to be at any given time, the generic way of achieveing this is : Activecell.Offset(0,-1).Select The first co-ordinate for an offset is for Row - in this case you want to stay on the same row so you use 0. The second co-ordinate is for Column. To go 1 column to the left you use -1. You'll have to be careful to allow for the possibility that the active cell is in row A. Trying to go left from there will give you a run time error. -- Time is just the thing that keeps everything from happening all at once "anon" wrote: If you dialog box is closed by you clicking a button there will be code to close it i presume. Therefore make the last line of the code, sheets("sheet1").range("d4").activate or activecell.offset(0,-1).select |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do you move the curser around in a cell | New Users to Excel | |||
My curser does not move the window at the bottom | Excel Discussion (Misc queries) | |||
VISUAL BASIC COMMAND TO MOVE CURSER DOWN ONE CELL | Excel Worksheet Functions | |||
Move curser to specific cell when closing | Excel Worksheet Functions | |||
Wherever I try and move my curser to it highlights that group of c | Excel Discussion (Misc queries) |