PC Review


Reply
Thread Tools Rate Thread

Can you set 2 ranges to both be from the same cell?

 
 
Simon
Guest
Posts: n/a
 
      15th Aug 2008
Seeing the example may make more sense

MyWBConvertor.Activate
Dim MyPath3 As String, MyRange3 As Range
Dim MyPath4 As String, MyRange4 As Range
MyPath3 = MyWBConvertor.Path
MyPath4 = MyWBConvertor.Path
Set MyRange3 = MyWBConvertor.ActiveSheet.Range("D25") '2 months ago
Set MyRange4 = MyWBConvertor.ActiveSheet.Range("C26") 'Year

MyWBConvertor.Activate
Dim MyPath As String, MyRange As Range
Dim MyPath2 As String, MyRange2 As Range
MyPath = MyWBConvertor.Path
MyPath2 = MyWBConvertor.Path
Set MyRange = MyWBConvertor.ActiveSheet.Range("C25") ' Last month
Set MyRange2 = MyWBConvertor.ActiveSheet.Range("C26") ' Year
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      15th Aug 2008
Yes, trying it would tell you that.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Simon" <(E-Mail Removed)> wrote in message
news:bcb1fc63-95b8-4850-b12f-(E-Mail Removed)...
> Seeing the example may make more sense
>
> MyWBConvertor.Activate
> Dim MyPath3 As String, MyRange3 As Range
> Dim MyPath4 As String, MyRange4 As Range
> MyPath3 = MyWBConvertor.Path
> MyPath4 = MyWBConvertor.Path
> Set MyRange3 = MyWBConvertor.ActiveSheet.Range("D25") '2 months ago
> Set MyRange4 = MyWBConvertor.ActiveSheet.Range("C26") 'Year
>
> MyWBConvertor.Activate
> Dim MyPath As String, MyRange As Range
> Dim MyPath2 As String, MyRange2 As Range
> MyPath = MyWBConvertor.Path
> MyPath2 = MyWBConvertor.Path
> Set MyRange = MyWBConvertor.ActiveSheet.Range("C25") ' Last month
> Set MyRange2 = MyWBConvertor.ActiveSheet.Range("C26") ' Year



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing single-cell vs multi-cell ranges to a variant array? ker_01 Microsoft Excel Programming 0 30th Jul 2009 11:03 PM
Change Named Cell ranges based upon value of another cell? =?Utf-8?B?ZmVkdWRl?= Microsoft Excel Programming 4 17th May 2006 02:19 PM
VBA: sum two named ranges, cell-by-cell George Microsoft Excel Misc 3 29th Apr 2006 02:09 AM
Using Cell Ranges gunny1979 Microsoft Excel Programming 1 3rd Apr 2006 08:25 PM
Cell ranges ATK Microsoft Excel Misc 1 27th Jan 2006 08:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:29 AM.