Copying Cells Which Include Conditional Formatting in Worksheet

September 25, 2009 by vba excel
Filed under: Excel Worksheet 
Sponsor

Excel Worksheet Copying Cells Which Include Formatting in Worksheet [Q]

I need some help modifying this microsoft excel code to include the worksheet formatting of the cell (conditional formatting):

If Not Intersect(Target, Range(”b4:b7″)) Is Nothing Then
Worksheets(”DuplicateSheet”).Range(”b11:b14″) =
Worksheets(”OriginalSheet”).Range(”b4:b7″).Value
End If

This is activated on the excel Worksheet_Change event. This excel code successfully copies that range of cells to the duplicate sheet should I make a change to one of them, but the conditional formatting is left behind. How can I drag the formatting over as well?

Thanks!

Excel Worksheet Copying Cells Which Include Formatting in Worksheet [A]

Your excel worksheet code is writen to transfer values only. I would suggest you use the copy this excel worksheet code :
If Not Intersect(Target, Range(”b4:b7″)) Is Nothing Then
Worksheets(”DuplicateSheet”).Range(”b11:b14″).Copy Destination:= _
Worksheets(”OriginalSheet”).Range(”b4:b7″)
End If

  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google
  • E-mail this story to a friend!
  • Live
  • MisterWong
  • Propeller
  • StumbleUpon
  • Technorati
  • TwitThis
  • YahooMyWeb
  • Print this article!

Rate This Tips:

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...


Incoming excel search terms

copy conditional formatting to another sheet,which include,,simple vb code to copy cells from one worksheet to another worksheet,conditionals worksheet,vb6 excel select worksheet worksheet,conditionals worksheets,copy conditional formatting excel,excel makro copy format,vba copy cell format,conditional worksheets,copy formatting of a sheet to a new sheet using macro,copying cells,keep formatting when copying a worksheet in excel,macro to conditionally copy rows to another worksheet,vba copy worksheet with formatting and formula,vbs excel copy formatting,vb net excel workbook copy over cell,cells worksheet,cells worksheets,conditional copy from sheet to another in excel vb code,conditional copy in excel from worksheet,conditional formatting to copy rows to different worksheet,copy cell conditional formatting,copy cell format vba,copy conditional formatting to another worksheet,copy dupplicates to another worksheet vba,copy format to sheet 2 excel,copy range of cells conditionally in vba,copying cell conditional formatting of excel using vb net,copying cell from different sheet excel,copying conditional format across,copying conditional formatting in excel across multiple rows,copying formating,delay in excel sheet copying from another sheet,excel code to copy cells to another worksheet,excel conditional formatting copying to another worksheet,excel conditional formatting multiple rows,excel copy conditional formatting,excel copy conditional formatting to another sheet,excel copying conditional formatting,excel macro copy destination delete conditional formatting,excel vba code which includes conditional formatting,excel vba conditional format,excel vba copy conditional formatting,formating worksheet,formatting a range of cells as hyperlinks,how to clear conditional formatting for a range of cells,how to transfer one value to another spreadsheet on excel,if conditionals worksheet



Related Excel Tips

Comments

Have another excel answer or questions for this problem ?
Feel free to post it here..