LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.vb.general.discussion
external usenet poster
 
Posts: 2,253
Default How to set programmatically focus on specified Excel row?


when you want to retain the activecell
and its not on the same row, you need a multiarea select
like:

Union(ActiveCell, Rows(13)).Select

dont use rows(currentrow

use Cells(currentRow,desiredCol).Select
or
activecell.entirerow.cells(desiredCol).select
or
activecell.entirerow.columns(desiredCol).select
or again to retain the activecell

union(activecell,cells(activecell.row,desiredCol)) .select

many roads to Rome :)


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Jack wrote :

Thank you.
Using .Select works.
However I am "loosing" the ActiveCell, when using Rows().Select
Before selecting the row I had specified ActiveCell.
When Rows().select is done the first cell in that row becomes active.
I do not want that. Jack
"Dave Peterson" wrote in message
...
oExcel.cells(CurrentRow, CurrentCol).Activate

????

Jack wrote:

I forgot to add.
When I try:
oExcel.Rows(CurrentRow, CurrentCol).Activate
I do have an error.

"Jack" <replyTo@newsgroup wrote in message
...
Hello,
1.
How to programmatically move focus from one Excel row into next

one? 2.
How to programmatically make cell an ActiveCell?

Your thoughts appreciated,
Jack



--
Dave Peterson

 
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
cursor focus in excel fourthhorn Excel Discussion (Misc queries) 1 June 2nd 06 06:05 AM
Excel Got FOcus event Xcelion Excel Programming 2 January 9th 06 03:20 PM
OLE Combobox: Excel breaks down when it has focus [email protected] Excel Programming 5 January 29th 05 10:02 PM
Excel stealing focus Akshay Excel Programming 3 October 24th 03 01:47 PM
Excel 97 VBA: Multipage set focus method David Excel Programming 3 October 7th 03 01:55 PM


All times are GMT +1. The time now is 09:20 AM.

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"