PC Review


Reply
Thread Tools Rate Thread

Changing code and formulas in Excel Program

 
 
PJG
Guest
Posts: n/a
 
      4th May 2007
I am working on a excel staff structure that has an issue with
changing formulas and VB programming. All formula cells are protected
and half are hidden
but every so often a reference will disapear from a formula. It is
never the same column or row and is only used by only 1 person per
shop no other interferance can be traced. Sometimes it can occour on
a
page that has not been modified.
here is a copy of the formula
=Hours_Worked($A81,C81,C82,$A$2)
hours_worked is the vba part of the program to work out the number of
hours worked and the remainder are reference cells
=Shift_Pay($A81,C$4,C81,C82,$G$2,$D$3,$A$2) +$K84/7
shift_pay works out the pay rates and any penalities in vba and gives
a $ figure

=Hours_Worked($A81,#REF!,#REF!,$A$2)
this is what I get which gives the errors
=Shift_Pay($A81,D$4,#REF!,#REF!,$G$2,$D$3,$A$2) +$K84/7


it is very random when and where it happens, It's like there is a
ghost in it doing what it wants
can any one help me?

I have now had 1 line of code changed and I dont know why
The line of code replaced "." with "<>"
and replaced "<>" with "="
Why or how did this happen?

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      4th May 2007
You have responses at your other thread.

PJG wrote:
>
> I am working on a excel staff structure that has an issue with
> changing formulas and VB programming. All formula cells are protected
> and half are hidden
> but every so often a reference will disapear from a formula. It is
> never the same column or row and is only used by only 1 person per
> shop no other interferance can be traced. Sometimes it can occour on
> a
> page that has not been modified.
> here is a copy of the formula
> =Hours_Worked($A81,C81,C82,$A$2)
> hours_worked is the vba part of the program to work out the number of
> hours worked and the remainder are reference cells
> =Shift_Pay($A81,C$4,C81,C82,$G$2,$D$3,$A$2) +$K84/7
> shift_pay works out the pay rates and any penalities in vba and gives
> a $ figure
>
> =Hours_Worked($A81,#REF!,#REF!,$A$2)
> this is what I get which gives the errors
> =Shift_Pay($A81,D$4,#REF!,#REF!,$G$2,$D$3,$A$2) +$K84/7
>
> it is very random when and where it happens, It's like there is a
> ghost in it doing what it wants
> can any one help me?
>
> I have now had 1 line of code changed and I dont know why
> The line of code replaced "." with "<>"
> and replaced "<>" with "="
> Why or how did this happen?


--

Dave Peterson
 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      4th May 2007
Hard to tell without seeing.

--
Don Guillett
SalesAid Software
(E-Mail Removed)
"PJG" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I am working on a excel staff structure that has an issue with
> changing formulas and VB programming. All formula cells are protected
> and half are hidden
> but every so often a reference will disapear from a formula. It is
> never the same column or row and is only used by only 1 person per
> shop no other interferance can be traced. Sometimes it can occour on
> a
> page that has not been modified.
> here is a copy of the formula
> =Hours_Worked($A81,C81,C82,$A$2)
> hours_worked is the vba part of the program to work out the number of
> hours worked and the remainder are reference cells
> =Shift_Pay($A81,C$4,C81,C82,$G$2,$D$3,$A$2) +$K84/7
> shift_pay works out the pay rates and any penalities in vba and gives
> a $ figure
>
> =Hours_Worked($A81,#REF!,#REF!,$A$2)
> this is what I get which gives the errors
> =Shift_Pay($A81,D$4,#REF!,#REF!,$G$2,$D$3,$A$2) +$K84/7
>
>
> it is very random when and where it happens, It's like there is a
> ghost in it doing what it wants
> can any one help me?
>
> I have now had 1 line of code changed and I dont know why
> The line of code replaced "." with "<>"
> and replaced "<>" with "="
> Why or how did this happen?
>


 
Reply With Quote
 
PJG
Guest
Posts: n/a
 
      20th May 2007
On May 4, 9:27 pm, "Don Guillett" <dguille...@austin.rr.com> wrote:
> Hard to tell without seeing.
>
> --
> Don Guillett
> SalesAid Software
> dguille...@austin.rr.com"PJG" <petergra...@iinet.net.au> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
> >I am working on a excel staff structure that has an issue with
> > changing formulas and VB programming. All formula cells are protected
> > and half are hidden
> > but every so often a reference will disapear from a formula. It is
> > never the same column or row and is only used by only 1 person per
> > shop no other interferance can be traced. Sometimes it can occour on
> > a
> > page that has not been modified.
> > here is a copy of the formula
> > =Hours_Worked($A81,C81,C82,$A$2)
> > hours_worked is the vba part of the program to work out the number of
> > hours worked and the remainder are reference cells
> > =Shift_Pay($A81,C$4,C81,C82,$G$2,$D$3,$A$2) +$K84/7
> > shift_pay works out the pay rates and any penalities in vba and gives
> > a $ figure

>
> > =Hours_Worked($A81,#REF!,#REF!,$A$2)
> > this is what I get which gives the errors
> > =Shift_Pay($A81,D$4,#REF!,#REF!,$G$2,$D$3,$A$2) +$K84/7

>
> > it is very random when and where it happens, It's like there is a
> > ghost in it doing what it wants
> > can any one help me?

>
> > I have now had 1 line of code changed and I dont know why
> > The line of code replaced "." with "<>"
> > and replaced "<>" with "="
> > Why or how did this happen?- Hide quoted text -

>
> - Show quoted text -


if any one would like a copy to see if they can find what is wrong
with it let me know

 
Reply With Quote
 
PJG
Guest
Posts: n/a
 
      20th May 2007
On May 4, 9:27 pm, "Don Guillett" <dguille...@austin.rr.com> wrote:
> Hard to tell without seeing.
>
> --
> Don Guillett
> SalesAid Software
> dguille...@austin.rr.com"PJG" <petergra...@iinet.net.au> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
> >I am working on a excel staff structure that has an issue with
> > changing formulas and VB programming. All formula cells are protected
> > and half are hidden
> > but every so often a reference will disapear from a formula. It is
> > never the same column or row and is only used by only 1 person per
> > shop no other interferance can be traced. Sometimes it can occour on
> > a
> > page that has not been modified.
> > here is a copy of the formula
> > =Hours_Worked($A81,C81,C82,$A$2)
> > hours_worked is the vba part of the program to work out the number of
> > hours worked and the remainder are reference cells
> > =Shift_Pay($A81,C$4,C81,C82,$G$2,$D$3,$A$2) +$K84/7
> > shift_pay works out the pay rates and any penalities in vba and gives
> > a $ figure

>
> > =Hours_Worked($A81,#REF!,#REF!,$A$2)
> > this is what I get which gives the errors
> > =Shift_Pay($A81,D$4,#REF!,#REF!,$G$2,$D$3,$A$2) +$K84/7

>
> > it is very random when and where it happens, It's like there is a
> > ghost in it doing what it wants
> > can any one help me?

>
> > I have now had 1 line of code changed and I dont know why
> > The line of code replaced "." with "<>"
> > and replaced "<>" with "="
> > Why or how did this happen?- Hide quoted text -

>
> - Show quoted text -


would you like a copy

 
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
Excel changing Path of Formulas Peg Microsoft Excel Misc 5 7th Apr 2009 06:18 PM
stop excel automatically changing formulas sollidamra Microsoft Excel Misc 3 18th Feb 2009 07:43 PM
stop excel changing formulas sollidamra Microsoft Excel Misc 7 17th Feb 2009 08:10 PM
Changing Links In Excel Causes Formulas To Change =?Utf-8?B?TURX?= Microsoft Excel Programming 3 28th Mar 2007 09:02 PM
How can I get Excel to stop changing my formulas? vehl Microsoft Excel Misc 1 18th Oct 2004 11:59 PM


Features
 

Advertising
 

Newsgroups
 


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