#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default range pick

Range(Target.Offset(0, -7), Target.Offset(7, 0)).Copy _
Can the code be changed to omit 6&7 this copies column ABCDEFGH I would like
to omit FG H is the start
Thanks All


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default range pick

/either do it in two steps or create a range which is a union of two ranges.

Union( Range(Target.Offset(0, -7), Target.Offset(7, -3)),range(target)).copy

If target is already a range then

Union( Range(Target.Offset(0, -7), Target.Offset(7, -3)),target).copy


"Curt" wrote:

Range(Target.Offset(0, -7), Target.Offset(7, 0)).Copy _
Can the code be changed to omit 6&7 this copies column ABCDEFGH I would like
to omit FG H is the start
Thanks All


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
#2: VBA to Pick Range and letter TomorrowsMan Excel Discussion (Misc queries) 2 November 17th 06 07:57 PM
#2: VBA to Pick Range and letter TomorrowsMan Excel Worksheet Functions 2 November 17th 06 07:57 PM
#2: VBA to Pick Range and letter TomorrowsMan Excel Programming 2 November 17th 06 07:57 PM
loop through cells in a range and pick up corresponding cell values in another range [email protected] Excel Programming 9 October 19th 06 05:11 AM
how to pick from a range of table values jackoat Excel Worksheet Functions 5 August 2nd 05 08:50 PM


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