Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default conditional formatting -dissapears

You recorded a macro when you did this copy|paste stuff.

Record another one when you do Copy|paste special|formulas.

You'll have code that should work ok.


Wanna Learn wrote:

Thanks Dave Yes I am pasting the new data into old cells. The macro I
run looks like this( I substituted the name of the real name with an X)
I'm not sure where your code goes. Again thanks
Sub ACD09()

ActiveCell.FormulaR1C1 = _

"=IF(ISERROR(VLOOKUP(RC3,'[X'!R1C1:R38C5,2,FALSE)),0,VLOOKUP(RC3,'[X'!R1C1:R38C5,2,FALSE))"
Range("D3").Select
Selection.Copy
Range("D4:D29").Select
ActiveSheet.Paste
Range("L3").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _

"=IF(ISERROR(VLOOKUP(RC3,'[X'!R1C1:R37C5,3,FALSE)),0,VLOOKUP(RC3,'[X'!R1C1:R37C5,3,FALSE))"
Range("L3").Select
Selection.Copy
Range("L4:L29").Select
ActiveSheet.Paste
Range("L3").Select
Application.CutCopyMode = False
Selection.Copy
Range("N3").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _

"=IF(ISERROR(VLOOKUP(RC3,'[X'!R1C1:R37C5,4,FALSE)),0,VLOOKUP(RC3,'[X'!R1C1:R37C5,4,FALSE))"
Range("N3").Select
Selection.Copy
Range("N4:N29").Select
ActiveSheet.Paste
Range("N3").Select
Application.CutCopyMode = False
Selection.Copy
Range("Q3").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _

"=IF(ISERROR(VLOOKUP(RC3,'[X'!R1C1:R37C5,5,FALSE)),0,VLOOKUP(RC3,'[X'!R1C1:R37C5,5,FALSE))"
Range("Q3").Select
Selection.Copy
Range("Q4:Q29").Select
ActiveSheet.Paste
Range("Q3").Select
End Sub

"Dave Peterson" wrote:

Maybe you're pasting the new data into the old cells.

Instead of using
somerange.copy _
destination:=someotherrange

You could use pastespecial values???

I'd try it manually to see if that works. Then change the code.

Wanna Learn wrote:

Hello I have a daily report that I update using a macro- (to get the
information from another report - that's ok ) In Column Q of this report I
have a conditional formatting-and it works, however, whenever I update the
report using the macro the conditional formatting does not work . How do i
correct this? thanks


--

Dave Peterson


--

Dave Peterson
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
Macor Button Dissapears Gaffnr Excel Worksheet Functions 1 May 20th 09 02:41 PM
I type words in the cell and when I make it wordwrap it dissapears ginlee2 Excel Discussion (Misc queries) 2 September 29th 08 04:19 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
Data dissapears when reformatting a chart Nateman Charts and Charting in Excel 1 April 19th 06 10:14 AM
Excel 2003 - Drawing a Simple Line - Dissapears SCPU173 Excel Discussion (Misc queries) 0 March 12th 06 11:48 PM


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

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"