Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Vj Vj is offline
external usenet poster
 
Posts: 54
Default Display range values

I have a range whose address is something like this: $A$25:$D$26,$A$43:$D$47

I need to extract the values from col A and col C and ignore the values from the col B and D.

I am really stuck with this problem and can somebody provide me a VBA code to do that.

Thanks in advance.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 227
Default Display range values

Hi VJ

This should return the values to cell E1

Sub test()
Dim r As Range
With ActiveSheet
Set r = Range("A25:D26,A43:D47")
Application.Intersect(r, .Range("A:A,C:C")).Copy .Range("E1")
End With
End Sub
--
XL2002
Regards

William



"VJ" wrote in message
...
| I have a range whose address is something like this:
$A$25:$D$26,$A$43:$D$47
|
| I need to extract the values from col A and col C and ignore the values
from the col B and D.
|
| I am really stuck with this problem and can somebody provide me a VBA code
to do that.
|
| Thanks in advance.
|


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
Excel 2007 - formula to display text over a range of values Malaria Man[_2_] Excel Discussion (Misc queries) 1 April 28th 10 05:50 PM
display range of values willemeulen Excel Discussion (Misc queries) 1 May 4th 09 01:21 PM
Named range not continuous. How to display values? Fries Excel Worksheet Functions 4 May 29th 08 11:41 AM
Display values set in a range?? rpp114 Excel Worksheet Functions 1 May 4th 06 08:08 PM
Display unique values in a range. future Excel Programming 5 January 29th 04 11:24 PM


All times are GMT +1. The time now is 03:35 PM.

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"