RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-16 Thread Asa Rossoff
: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? All for the education. Keep it coming. Once I have things working I will go back and try to make the program more efficient and elegant. The statement below does not work if you remove the .value. Back to the not finding

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-15 Thread Asa Rossoff
10:49 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? The msgbox example seems to have an error but with other reading I think maybe but not certain I got it. I got the array version of the rounding to work

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-15 Thread Domain Admin
is usedrange here returning the entire spreadsheet? The msgbox example seems to have an error but with other reading I think maybe but not certain I got it. I got the array version of the rounding to work.  The evaluate version is slightly faster but the array version way faster than

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-15 Thread Domain Admin
] On Behalf Of Domain Admin Sent: Wednesday, April 11, 2012 10:49 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? The msgbox example seems to have an error but with other reading I think maybe but not certain I got

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-15 Thread dguillett1
...@gmail.com -Original Message- From: Domain Admin Sent: Sunday, April 15, 2012 6:05 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? Well on the read side we definitely match except he makes the point of saying he

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-15 Thread Domain Admin
-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Domain Admin Sent: Wednesday, April 11, 2012 10:49 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? The msgbox example seems to have an error

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-15 Thread Domain Admin
, 2012 4:05 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? Well on the read side we definitely match except he makes the point of saying he is not using SET. Why is that?  What is the difference? It does indicate

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-15 Thread Asa Rossoff
1:18 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? Hence my confusion. Here is the code I am currently using. Sounds like you are saying the SET should cause it to fail. But it only works if I use the SET

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-15 Thread Domain Admin
[mailto:excel-macros@googlegroups.com] On Behalf Of Domain Admin Sent: Sunday, April 15, 2012 4:05 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? Well on the read side we definitely match except he makes the point

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-15 Thread Asa Rossoff
[mailto:excel-macros@googlegroups.com] On Behalf Of Domain Admin Sent: Sunday, April 15, 2012 4:05 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? Well on the read side we definitely match except he makes

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-15 Thread Domain Admin
7:49 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? yeah all the rest was there.  Still confused though.  He supposedly does without SET what I cannot do unless I use SET. On Sun, Apr 15, 2012 at 7:25 PM, Asa Rossoff

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-09 Thread Asa Rossoff
: Saturday, April 07, 2012 10:14 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? When you did not use the intersection was the error unable to find the match function? In any case    contangoindex = 1    Do While Sheets

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-09 Thread Asa Rossoff
[mailto:a...@lovetour.info] Sent: Monday, April 09, 2012 2:35 AM To: 'excel-macros@googlegroups.com' Subject: RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? This works. Is there a reason why it is not better? Yes. It won't always work. RANGE.Columns is relative

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-09 Thread Domain Admin
was to limit the size of the range properly. -Original Message- From: Asa Rossoff [mailto:a...@lovetour.info] Sent: Monday, April 09, 2012 2:35 AM To: 'excel-macros@googlegroups.com' Subject: RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? This works

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-09 Thread Domain Admin
@googlegroups.com] On Behalf Of Domain Admin Sent: Saturday, April 07, 2012 10:14 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? When you did not use the intersection was the error unable to find the match function? In any

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-09 Thread Domain Admin
Sent: Sunday, April 08, 2012 1:36 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? This works.  Is there a reason why it is not better? I did your array replacement but I changed this Set InputRange

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-09 Thread Asa Rossoff
Message- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Domain Admin Sent: Monday, April 09, 2012 1:03 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? If this is the answer to my last

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-09 Thread Asa Rossoff
[mailto:a...@lovetour.info] Sent: Monday, April 09, 2012 1:19 PM To: 'excel-macros@googlegroups.com' Subject: RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? Ok but if I use Set BarDate = ... where BarDate is a range object and I do this inside a procedure, but BarDate

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-09 Thread Domain Admin
PM To: 'excel-macros@googlegroups.com' Subject: RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? Ok but if I  use Set BarDate = ... where BarDate is a range object and I do this inside a procedure, but BarDate is defined at the modulelevel, then is BarDate the range

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-08 Thread Domain Admin
07, 2012 10:14 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? When you did not use the intersection was the error unable to find the match function? In any case    contangoindex = 1    Do While Sheets(RawData

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Asa Rossoff
you should highlight the entire rows (and same for extra columns), right-click, delete the delete key won't cut it (clears the text and formulas but leaves formats) or I select those rows/columns, then Alt-E,D if selecting some cells but not entire row/column, you can delete entire row with

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread dguillett1
Did you delete rows using the row indicator at the left of the sheet? Did you SAVE the file after so doing? Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: tangledweb Sent: Saturday, April 07, 2012 4:24 PM To: excel-macros@googlegroups.com Subject:

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Domain Admin
Ok then I can not use this method at all becaues the columns have formats set for the entire column (really not efficient for that to be part of userange). And I am guessing this statement that I thought was efficient is actually clearing the entire spreadsheet and not jus the part with data

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Domain Admin
Yes and no, but if formats count as part of usedrange then this method will not work as the formats need to stay in the entire columns which will have different numbers of rows filled at different times. On Sat, Apr 7, 2012 at 2:34 PM, dguillett1 dguille...@gmail.com wrote: Did you delete rows

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Domain Admin
It would seem that delete does remove the format, But when I delete all extra rows, all extra columns, and save the file, I still get the same 99 answer. On Sat, Apr 7, 2012 at 2:42 PM, Domain Admin domainqu...@gmail.com wrote: Yes and no, but if formats count as part of usedrange then this

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Asa Rossoff
Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? Ok then I can not use this method at all becaues the columns have formats set for the entire column (really not efficient for that to be part of userange). And I am guessing this statement that I thought

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Domain Admin
-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Domain Admin Sent: Saturday, April 07, 2012 2:40 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? Ok then I can not use this method at all becaues

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Asa Rossoff
] On Behalf Of Domain Admin Sent: Saturday, April 07, 2012 2:40 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? Ok then I can not use this method at all becaues the columns have formats set for the entire column (really

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Asa Rossoff
: Saturday, April 07, 2012 3:14 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? I figured the extra row was cleared but that is not a problem. It seems on testing that clearcontents is working fine leaving the formats alone

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Domain Admin
Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? Ok then I can not use this method at all becaues the columns have formats set for the entire column (really not efficient for that to be part of userange). And I am guessing this statement that I thought

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Asa Rossoff
@googlegroups.com] On Behalf Of Domain Admin Sent: Saturday, April 07, 2012 3:26 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? I can use a loop to find the end, but why is usedrange returning all rows? That seems to be a fundamental

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Domain Admin
@googlegroups.com] On Behalf Of Domain Admin Sent: Saturday, April 07, 2012 3:14 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? I figured the extra row was cleared but that is not a problem. It seems on testing

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Domain Admin
Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? I can use a loop to find the end, but why is usedrange returning all rows?  That seems to be a fundamental issue. On Sat, Apr 7, 2012 at 3:13 PM, Asa Rossoff a...@lovetour.info wrote: p.s. other methods

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Asa Rossoff
@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Domain Admin Sent: Saturday, April 07, 2012 3:32 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? No not a range object, just a reference. But here is the entire

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Domain Admin
, April 07, 2012 5:00 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? using Debug.Print ActiveSheet.Cells.Address  returns $1:$1048576 which makes me think is is the true number of rows but would seem to address only 1

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Domain Admin
Message- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Domain Admin Sent: Saturday, April 07, 2012 5:00 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? using Debug.Print

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Domain Admin
:00 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? using Debug.Print ActiveSheet.Cells.Address  returns $1:$1048576 which makes me think is is the true number of rows but would seem to address only 1 column so I guess

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Asa Rossoff
@googlegroups.com] On Behalf Of Domain Admin Sent: Saturday, April 07, 2012 6:29 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? I notice in all the other match functions they are inside a With Sheets(somesheet) so I tried putting

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Domain Admin
-Original Message- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Domain Admin Sent: Saturday, April 07, 2012 6:29 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? I notice in all

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Asa Rossoff
. Asa -Original Message- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Domain Admin Sent: Saturday, April 07, 2012 6:29 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? I

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Asa Rossoff
, April 07, 2012 5:18 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? I read that after I posted. But doesn't that mean Sheets(Results).Cells.Resize(-1).Offset(1).Delete that you suggested would be deleting ever row

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Asa Rossoff
@googlegroups.com] On Behalf Of Domain Admin Sent: Saturday, April 07, 2012 4:51 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? Writing that book should be easy. Just collect all your question and answer thread and put them

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Domain Admin
- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Domain Admin Sent: Saturday, April 07, 2012 8:15 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? Thanks for that.  I will check

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Asa Rossoff
, Asa -Original Message- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Asa Rossoff Sent: Saturday, April 07, 2012 4:19 PM To: excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Asa Rossoff
[mailto:excel-macros@googlegroups.com] On Behalf Of Domain Admin Sent: Saturday, April 07, 2012 8:57 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? I tried what you said. Is it trying to make an array out of a range, or just

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Domain Admin
-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Domain Admin Sent: Saturday, April 07, 2012 3:14 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? I figured the extra row was cleared

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Domain Admin
07, 2012 8:57 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? I tried what you said.  Is it trying to make an array out of a range, or just restrict the range (looks more like the latter).  Still got the error Unable

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Asa Rossoff
-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? This is interesting. It would seem to allow for the possibility of filling in my entire results sheet as an array then dumping it to the sheet all at once. But probably not since

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Domain Admin
@googlegroups.com Subject: RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? The term reference in Excel, when referring to a cell or range, means the textual description of that cell or range (the Address property of a range object returns the range reference).  In VBA

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Asa Rossoff
-Original Message- From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Domain Admin Sent: Saturday, April 07, 2012 9:31 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? That gave me

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Domain Admin
@googlegroups.com] On Behalf Of Domain Admin Sent: Saturday, April 07, 2012 9:31 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? That gave me an idea but it did not work.  I thought maybe it could not find the match

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Asa Rossoff
@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? This is interesting.  It would seem to allow for the possibility of filling in my entire results sheet as an array then dumping it to the sheet all at once. But probably not since there is no apriori

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Asa Rossoff
Now seriously take a break. You're right :) However, no, others often know things that stump me. And my knowledge is superficial in some areas, and I make assumptions.. ttyl :) -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Domain Admin
@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? That gave me an idea but it did not work.  I thought maybe it could not find the match function because that meant it wanted one where the second variable was a range instead of an array so

RE: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Asa Rossoff
: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Domain Admin Sent: Saturday, April 07, 2012 10:14 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? When you did not use the intersection

Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet?

2012-04-07 Thread Domain Admin
10:14 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Why is usedrange here returning the entire spreadsheet? When you did not use the intersection was the error unable to find the match function? In any case    contangoindex = 1    Do While Sheets(RawData).Cells(2