PC Review


Reply
Thread Tools Rate Thread

Different Results running the same macro??

 
 
Laurie
Guest
Posts: n/a
 
      7th Aug 2008
I am puzzled why each time when the same macro is running, there is a
different result, while after a few tims of running the macro, the result
stays the same thereafter.

There are two possible reasons I can think of:
1. The macro has a "Calculate" statement;
2. There is another workbook open.

I am not sure if any of the above two items is the reason of different
results by running the same macro multiple times.

Thank you anyone in advance who can give me some clue here!!

Laurie

 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      7th Aug 2008
Post YOUR code

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Laurie" <(E-Mail Removed)> wrote in message
news:C8F8F4D1-BC03-4E33-A6BA-(E-Mail Removed)...
>I am puzzled why each time when the same macro is running, there is a
> different result, while after a few tims of running the macro, the result
> stays the same thereafter.
>
> There are two possible reasons I can think of:
> 1. The macro has a "Calculate" statement;
> 2. There is another workbook open.
>
> I am not sure if any of the above two items is the reason of different
> results by running the same macro multiple times.
>
> Thank you anyone in advance who can give me some clue here!!
>
> Laurie
>


 
Reply With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      7th Aug 2008
I can think of a lot of ways to write a macro to do that. Off the top of my
head... if the macro adds a constant to a cell reference up to some maximum
summation value and then outputs a value based on that cell reference's
value; then, until that maximum summation is reached, a different result
will be outputted, after the maximum summation is reached, the same repeated
value will be outputted (since the maximum summation has been reached and
doesn't change any more).

Rick


"Laurie" <(E-Mail Removed)> wrote in message
news:C8F8F4D1-BC03-4E33-A6BA-(E-Mail Removed)...
>I am puzzled why each time when the same macro is running, there is a
> different result, while after a few tims of running the macro, the result
> stays the same thereafter.
>
> There are two possible reasons I can think of:
> 1. The macro has a "Calculate" statement;
> 2. There is another workbook open.
>
> I am not sure if any of the above two items is the reason of different
> results by running the same macro multiple times.
>
> Thank you anyone in advance who can give me some clue here!!
>
> Laurie
>


 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      7th Aug 2008
Outputted??

"Rick Rothstein (MVP - VB)" wrote:

> I can think of a lot of ways to write a macro to do that. Off the top of my
> head... if the macro adds a constant to a cell reference up to some maximum
> summation value and then outputs a value based on that cell reference's
> value; then, until that maximum summation is reached, a different result
> will be outputted, after the maximum summation is reached, the same repeated
> value will be outputted (since the maximum summation has been reached and
> doesn't change any more).
>
> Rick
>
>
> "Laurie" <(E-Mail Removed)> wrote in message
> news:C8F8F4D1-BC03-4E33-A6BA-(E-Mail Removed)...
> >I am puzzled why each time when the same macro is running, there is a
> > different result, while after a few tims of running the macro, the result
> > stays the same thereafter.
> >
> > There are two possible reasons I can think of:
> > 1. The macro has a "Calculate" statement;
> > 2. There is another workbook open.
> >
> > I am not sure if any of the above two items is the reason of different
> > results by running the same macro multiple times.
> >
> > Thank you anyone in advance who can give me some clue here!!
> >
> > Laurie
> >

>
>

 
Reply With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      10th Aug 2008
Sure, why not? Check out the "inflected forms" at this authoritative site...

http://www.merriam-webster.com/dictionary/outputted

Rick


"JLGWhiz" <(E-Mail Removed)> wrote in message
news:872C6119-BBAB-41A5-9222-(E-Mail Removed)...
> Outputted??
>
> "Rick Rothstein (MVP - VB)" wrote:
>
>> I can think of a lot of ways to write a macro to do that. Off the top of
>> my
>> head... if the macro adds a constant to a cell reference up to some
>> maximum
>> summation value and then outputs a value based on that cell reference's
>> value; then, until that maximum summation is reached, a different result
>> will be outputted, after the maximum summation is reached, the same
>> repeated
>> value will be outputted (since the maximum summation has been reached and
>> doesn't change any more).
>>
>> Rick
>>
>>
>> "Laurie" <(E-Mail Removed)> wrote in message
>> news:C8F8F4D1-BC03-4E33-A6BA-(E-Mail Removed)...
>> >I am puzzled why each time when the same macro is running, there is a
>> > different result, while after a few tims of running the macro, the
>> > result
>> > stays the same thereafter.
>> >
>> > There are two possible reasons I can think of:
>> > 1. The macro has a "Calculate" statement;
>> > 2. There is another workbook open.
>> >
>> > I am not sure if any of the above two items is the reason of different
>> > results by running the same macro multiple times.
>> >
>> > Thank you anyone in advance who can give me some clue here!!
>> >
>> > Laurie
>> >

>>
>>


 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      10th Aug 2008
Yeah, I found out it ain't necessarily true that ain't ain't a good word! <g>

"Rick Rothstein (MVP - VB)" wrote:

> Sure, why not? Check out the "inflected forms" at this authoritative site...
>
> http://www.merriam-webster.com/dictionary/outputted
>
> Rick
>
>
> "JLGWhiz" <(E-Mail Removed)> wrote in message
> news:872C6119-BBAB-41A5-9222-(E-Mail Removed)...
> > Outputted??
> >
> > "Rick Rothstein (MVP - VB)" wrote:
> >
> >> I can think of a lot of ways to write a macro to do that. Off the top of
> >> my
> >> head... if the macro adds a constant to a cell reference up to some
> >> maximum
> >> summation value and then outputs a value based on that cell reference's
> >> value; then, until that maximum summation is reached, a different result
> >> will be outputted, after the maximum summation is reached, the same
> >> repeated
> >> value will be outputted (since the maximum summation has been reached and
> >> doesn't change any more).
> >>
> >> Rick
> >>
> >>
> >> "Laurie" <(E-Mail Removed)> wrote in message
> >> news:C8F8F4D1-BC03-4E33-A6BA-(E-Mail Removed)...
> >> >I am puzzled why each time when the same macro is running, there is a
> >> > different result, while after a few tims of running the macro, the
> >> > result
> >> > stays the same thereafter.
> >> >
> >> > There are two possible reasons I can think of:
> >> > 1. The macro has a "Calculate" statement;
> >> > 2. There is another workbook open.
> >> >
> >> > I am not sure if any of the above two items is the reason of different
> >> > results by running the same macro multiple times.
> >> >
> >> > Thank you anyone in advance who can give me some clue here!!
> >> >
> >> > Laurie
> >> >
> >>
> >>

>
>

 
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
Presenter view not running after running macro in powerpoint 2007 rich2764 Microsoft Powerpoint 0 26th Apr 2008 03:42 AM
Different results when running macro vs stepping into macro Ken Steinhoff Microsoft Excel Programming 4 20th Sep 2007 05:49 PM
Sheets("Rpt").Copy different results from running in macro than off excel menu?? tmbo Microsoft Excel Misc 7 9th Aug 2006 01:13 PM
Running Macro from Word vs running macro from vb.net prog Simon Microsoft Word New Users 0 16th Jul 2005 10:17 AM
How can I list the results of my macro without overwritng previous results? =?Utf-8?B?bWF0dGlw?= Microsoft Excel Programming 3 28th Nov 2003 03:45 AM


Features
 

Advertising
 

Newsgroups
 


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