Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Coppying cells, including conditional formatting ('03 & '07)

I need some help modifying this code to include the 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 Worksheet_Change event. This 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!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Coppying cells, including conditional formatting ('03 & '07)

hi
you code is writen to transfer values only. i would suggest you use the copy
command....
If Not Intersect(Target, Range("b4:b7")) Is Nothing Then
Worksheets("DuplicateSheet").Range("b11:b14").Copy Destination:= _
Worksheets("OriginalSheet").Range("b4:b7")
End If

regards
FSt1

"Raymond W." wrote:

I need some help modifying this code to include the 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 Worksheet_Change event. This 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!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Coppying cells, including conditional formatting ('03 & '07)

Awesome. I swapped everything around and it works as expected. Thank you very
much for the fast response!

"FSt1" wrote:

hi
you code is writen to transfer values only. i would suggest you use the copy
command....
If Not Intersect(Target, Range("b4:b7")) Is Nothing Then
Worksheets("DuplicateSheet").Range("b11:b14").Copy Destination:= _
Worksheets("OriginalSheet").Range("b4:b7")
End If

regards
FSt1


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Coppying cells, including conditional formatting ('03 & '07)

glad to help.
regares
FSt1

"Raymond W." wrote:

Awesome. I swapped everything around and it works as expected. Thank you very
much for the fast response!

"FSt1" wrote:

hi
you code is writen to transfer values only. i would suggest you use the copy
command....
If Not Intersect(Target, Range("b4:b7")) Is Nothing Then
Worksheets("DuplicateSheet").Range("b11:b14").Copy Destination:= _
Worksheets("OriginalSheet").Range("b4:b7")
End If

regards
FSt1


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
Formatting cells in a column with conditional formatting? shamor Excel Discussion (Misc queries) 8 May 19th 08 10:11 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
Compare cells including formatting [email protected] Excel Programming 3 August 8th 06 01:04 AM
Conditional Formatting Multiple cells based on 2 cells Louis Markowski Excel Worksheet Functions 2 June 1st 05 05:26 PM
coppying nested if statements loopy Excel Programming 2 May 4th 04 07:11 PM


All times are GMT +1. The time now is 04:36 PM.

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

About Us

"It's about Microsoft Excel"