Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 201
Default Cell selection in non-active sheet

Excel 2002, WinXP
All the following relates to doing this in VBA.

If I paste something to say, A3:D3, then A3:D3 of that sheet is highlighted
in blue.

If I want to get rid of the blue highlight, and make A1 the active cell on
that sheet, and that sheet is the active sheet, all I have to do is select
A1.

Question: How can I make this happen when that sheet is not the active
sheet, short of selecting that sheet first?

Thanks for your help. Otto


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Cell selection in non-active sheet

I assume you want to copy paste
and not show what you'ce copied thrue the selection..

use syntax like
Range("sheet1!a3:d3").copy Range("sheet2!a4:d4")

and there's no need to (re)select any cells :)


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Otto Moehrbach" wrote:

Excel 2002, WinXP
All the following relates to doing this in VBA.

If I paste something to say, A3:D3, then A3:D3 of that sheet is
highlighted in blue.

If I want to get rid of the blue highlight, and make A1 the active
cell on that sheet, and that sheet is the active sheet, all I have to
do is select A1.

Question: How can I make this happen when that sheet is not the
active sheet, short of selecting that sheet first?

Thanks for your help. Otto




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
jump to active cell in other sheet . mongkolkorn Excel Discussion (Misc queries) 12 June 19th 07 07:30 PM
Selection starting from active cell Ronald Dodge Excel Discussion (Misc queries) 3 October 10th 06 12:46 AM
Active Cell Copy And Paste Sheet to Sheet A.R.J Allan Jefferys New Users to Excel 4 May 4th 06 02:04 AM
Using the Active cell in one sheet for another sheet JOHNNY_E Excel Discussion (Misc queries) 0 May 4th 05 06:19 AM
Determining the Selection on a non-active Sheet? Jim S.[_4_] Excel Programming 2 April 17th 04 03:59 AM


All times are GMT +1. The time now is 11:06 PM.

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"