Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default Over keying a formula - Can I set this to automatically bold ?

Hi All,

Hopefully this is a nice easy one that somebody can help me out with :-)

I have a column of data with formula's in (forecasted sales) during the
month I over key these when the actual orders come in. Is there a way that I
can set something up so that when I over key the formula the text changes in
some way either a different colour or bold for example. I have tried using
conditional formatting but don't seem to be getting anywhere.

Thanks in advance for your help

Regards

Dave
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Over keying a formula - Can I set this to automatically bold ?


Dave,

You need to use an event.

Copy the code below, right-click your sheet tab, select "View Code" and paste the code into the
window that appears.

This code will make cells with formulas that have been over-written bold and red.

HTH,
Bernie
MS Excel MVP

Private Sub Worksheet_Change(ByVal Target As Range)
Dim NewVal As Variant
With Application
.EnableEvents = False
NewVal = Target.Value
.Undo
If Target.HasFormula Then
Target.Font.Bold = True
Target.Font.ColorIndex = 3
End If
Target.Value = NewVal
.EnableEvents = True
End With
End Sub

"Dave" wrote in message
...
Hi All,

Hopefully this is a nice easy one that somebody can help me out with :-)

I have a column of data with formula's in (forecasted sales) during the
month I over key these when the actual orders come in. Is there a way that I
can set something up so that when I over key the formula the text changes in
some way either a different colour or bold for example. I have tried using
conditional formatting but don't seem to be getting anywhere.

Thanks in advance for your help

Regards

Dave



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Over keying a formula - Can I set this to automatically bold ?

You can add this User Defined Function to your workbook.

Function IsFormula(Cell)
Application.Volatile
IsFormula = Cell.HasFormula
End Function

Select the range to Format then

FormatConditional FormattingFormula is: =isformula($A1)

I assumed the range was in column A.


Gord Dibben MS Excel MVP

On Wed, 16 Aug 2006 08:16:01 -0700, Dave wrote:

Hi All,

Hopefully this is a nice easy one that somebody can help me out with :-)

I have a column of data with formula's in (forecasted sales) during the
month I over key these when the actual orders come in. Is there a way that I
can set something up so that when I over key the formula the text changes in
some way either a different colour or bold for example. I have tried using
conditional formatting but don't seem to be getting anywhere.

Thanks in advance for your help

Regards

Dave


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default Over keying a formula - Can I set this to automatically bold ?

Thanks for that Bernie,

It does exactly what I want, a couple of things though.......:-)
It appears to have disabled my undo button, I can't seem to undo any of my
often keying errors and if I try to recopy the formula back in to the cell
after I have over keyed, it doesn't put the formula back in only the value of
what the formula would be. I've tried taking the event back out and things go
back to normal

Any suggestions?

Thanks again

Dave

"Dave" wrote:

Hi All,

Hopefully this is a nice easy one that somebody can help me out with :-)

I have a column of data with formula's in (forecasted sales) during the
month I over key these when the actual orders come in. Is there a way that I
can set something up so that when I over key the formula the text changes in
some way either a different colour or bold for example. I have tried using
conditional formatting but don't seem to be getting anywhere.

Thanks in advance for your help

Regards

Dave

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Over keying a formula - Can I set this to automatically bold ?

Dave,

Sorry, but running event code will dump Excel's memory stack, prevent Undo.

Try Gord's solution of using the UDF in the Cond. Formatting.

HTH,
Bernie
MS Excel MVP


"Dave" wrote in message
...
Thanks for that Bernie,

It does exactly what I want, a couple of things though.......:-)
It appears to have disabled my undo button, I can't seem to undo any of my
often keying errors and if I try to recopy the formula back in to the cell
after I have over keyed, it doesn't put the formula back in only the value of
what the formula would be. I've tried taking the event back out and things go
back to normal

Any suggestions?

Thanks again

Dave

"Dave" wrote:

Hi All,

Hopefully this is a nice easy one that somebody can help me out with :-)

I have a column of data with formula's in (forecasted sales) during the
month I over key these when the actual orders come in. Is there a way that I
can set something up so that when I over key the formula the text changes in
some way either a different colour or bold for example. I have tried using
conditional formatting but don't seem to be getting anywhere.

Thanks in advance for your help

Regards

Dave





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default Over keying a formula - Can I set this to automatically bold ?

Thanks Bernie,

How do I add a user defined function? Do I just copy the code into the view
code window as per your suggestion ?

Regards

Dave

"Bernie Deitrick" wrote:

Dave,

Sorry, but running event code will dump Excel's memory stack, prevent Undo.

Try Gord's solution of using the UDF in the Cond. Formatting.

HTH,
Bernie
MS Excel MVP


"Dave" wrote in message
...
Thanks for that Bernie,

It does exactly what I want, a couple of things though.......:-)
It appears to have disabled my undo button, I can't seem to undo any of my
often keying errors and if I try to recopy the formula back in to the cell
after I have over keyed, it doesn't put the formula back in only the value of
what the formula would be. I've tried taking the event back out and things go
back to normal

Any suggestions?

Thanks again

Dave

"Dave" wrote:

Hi All,

Hopefully this is a nice easy one that somebody can help me out with :-)

I have a column of data with formula's in (forecasted sales) during the
month I over key these when the actual orders come in. Is there a way that I
can set something up so that when I over key the formula the text changes in
some way either a different colour or bold for example. I have tried using
conditional formatting but don't seem to be getting anywhere.

Thanks in advance for your help

Regards

Dave




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Over keying a formula - Can I set this to automatically bold ?

Dave,

No. You need to put it into a standard codemodule. See

http://www.mvps.org/dmcritchie/excel/getstarted.htm

for more detailed instructions.

HTH,
Bernie
MS Excel MVP


"Dave" wrote in message
...
Thanks Bernie,

How do I add a user defined function? Do I just copy the code into the view
code window as per your suggestion ?

Regards

Dave

"Bernie Deitrick" wrote:

Dave,

Sorry, but running event code will dump Excel's memory stack, prevent Undo.

Try Gord's solution of using the UDF in the Cond. Formatting.

HTH,
Bernie
MS Excel MVP


"Dave" wrote in message
...
Thanks for that Bernie,

It does exactly what I want, a couple of things though.......:-)
It appears to have disabled my undo button, I can't seem to undo any of my
often keying errors and if I try to recopy the formula back in to the cell
after I have over keyed, it doesn't put the formula back in only the value of
what the formula would be. I've tried taking the event back out and things go
back to normal

Any suggestions?

Thanks again

Dave

"Dave" wrote:

Hi All,

Hopefully this is a nice easy one that somebody can help me out with :-)

I have a column of data with formula's in (forecasted sales) during the
month I over key these when the actual orders come in. Is there a way that I
can set something up so that when I over key the formula the text changes in
some way either a different colour or bold for example. I have tried using
conditional formatting but don't seem to be getting anywhere.

Thanks in advance for your help

Regards

Dave






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically updating a formula JGarces Excel Worksheet Functions 2 April 26th 06 03:49 PM
Cell Ref. in Formula changes automatically knighthawk Excel Worksheet Functions 1 February 21st 06 01:02 AM
Automatically step a formula? [email protected] Excel Worksheet Functions 4 February 15th 06 03:35 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM


All times are GMT +1. The time now is 04:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"