PC Review


Reply
Thread Tools Rate Thread

Code runs different on different machines

 
 
Andrew
Guest
Posts: n/a
 
      16th Feb 2011
Hello,
I have a long excel program which runs fine (and has been running fine
for about a year) on all machines except one. One this one machine I
get some odd behavior. It is as follows:

A user form is used to enter values into cells in one of the
worksheets. There are 5 values, two strings, two currency values, and
1 number. On this one particular machine, the values enter into the
sheet in a repeated form, as if they were part of an array. So, the
userform input number 105.00 would show up on the worksheet as 105.00
105.00 105.00 105.00 105.00 105.00 105.00.

As I said, this code has been running fine on three other machines for
about a year. The only problem I've had is on this one machine. All
machines are using Excel 2007.

Does anyone know if there is a setting in the excel options area which
could affect how the macro runs? Or any other reason why a macro
would run on one machine and not another?

thanks,
Andy
 
Reply With Quote
 
 
 
 
AB
Guest
Posts: n/a
 
      16th Feb 2011
Not that i'm aware of (in the scenario you describe anyway).
Try stepping through the code (F8) and see what causes it to do so.

On Feb 16, 3:44*pm, Andrew <andrewkgent...@gmail.com> wrote:
> Hello,
> I have a long excel program which runs fine (and has been running fine
> for about a year) on all machines except one. *One this one machine I
> get some odd behavior. *It is as follows:
>
> A user form is used to enter values into cells in one of the
> worksheets. *There are 5 values, two strings, two currency values, and
> 1 number. *On this one particular machine, the values enter into the
> sheet in a repeated form, as if they were part of an array. *So, the
> userform input number 105.00 would show up on the worksheet as 105.00
> 105.00 105.00 105.00 105.00 105.00 105.00.
>
> As I said, this code has been running fine on three other machines for
> about a year. *The only problem I've had is on this one machine. *All
> machines are using Excel 2007.
>
> Does anyone know if there is a setting in the excel options area which
> could affect how the macro runs? *Or any other reason why a macro
> would run on one machine and not another?
>
> thanks,
> Andy


 
Reply With Quote
 
Andrew
Guest
Posts: n/a
 
      16th Feb 2011
On Feb 16, 9:41*am, AB <austris.bahanovs...@gmail.com> wrote:
> Not that i'm aware of (in the scenario you describe anyway).
> Try stepping through the code (F8) and see what causes it to do so.
>
> On Feb 16, 3:44*pm, Andrew <andrewkgent...@gmail.com> wrote:
>
> > Hello,
> > I have a long excel program which runs fine (and has been running fine
> > for about a year) on all machines except one. *One this one machine I
> > get some odd behavior. *It is as follows:

>
> > A user form is used to enter values into cells in one of the
> > worksheets. *There are 5 values, two strings, two currency values, and
> > 1 number. *On this one particular machine, the values enter into the
> > sheet in a repeated form, as if they were part of an array. *So, the
> > userform input number 105.00 would show up on the worksheet as 105.00
> > 105.00 105.00 105.00 105.00 105.00 105.00.

>
> > As I said, this code has been running fine on three other machines for
> > about a year. *The only problem I've had is on this one machine. *All
> > machines are using Excel 2007.

>
> > Does anyone know if there is a setting in the excel options area which
> > could affect how the macro runs? *Or any other reason why a macro
> > would run on one machine and not another?

>
> > thanks,
> > Andy


I've done the F8 walk through, the error occurs when the command to
write to the cell is made. But I don't see why there would be an
error. But here's some new and odd information: We went into Excel
Options >> Advanced >> Lotus Compatibility and selected the box for
Transition Navigation keys. The only reason we did this was because
the other machines had that setting selected. After doing that, the
code worked. ??? I wrote the code myself, and there are no lotus
commands in it. The whole thing was done on Excel 2007. Can someone
explain how that setting could have made a difference?
 
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
CSV code works on some, but not all machines Ken Warthen Microsoft Excel Programming 3 7th Aug 2009 11:08 PM
Report "open" code runs - header format code doesn't TomM Microsoft Access 1 27th Nov 2008 01:38 AM
Console app runs at same speed on all machines John Bailo Microsoft Dot NET 8 13th Mar 2006 09:19 PM
VERY bad problem, database runs differently on different machines! =?Utf-8?B?TWF1cnkgTWFya293aXR6?= Microsoft Access 10 16th Jan 2006 02:46 PM
problem with VB code on some machines (.net bug may be) Jemdam.com Microsoft Dot NET Framework 0 4th Sep 2005 12:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:21 AM.