Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
GarryKhoo
 
Posts: n/a
Default Please help. Very simple but I don't know. :)

I have 2 worksheet.

The first worksheet1 Cell e.g. A2 have formating such as "What a good day"
with "What" in Red color, "a good day" in Green color and entire word in Bold.

On 2nd worksheet2, I put " =worksheet1!A2 ". The result only the words but
without the formating.

Please help how can I display exactly the same in 2nd worksheet with 1st
worksheet including all the formating?

--
Thanks a lot.

Best Regards,
Garry Khoo
  #2   Report Post  
Richard Buttrey
 
Posts: n/a
Default

On Mon, 19 Sep 2005 00:42:03 -0700, GarryKhoo
wrote:

I have 2 worksheet.

The first worksheet1 Cell e.g. A2 have formating such as "What a good day"
with "What" in Red color, "a good day" in Green color and entire word in Bold.

On 2nd worksheet2, I put " =worksheet1!A2 ". The result only the words but
without the formating.

Please help how can I display exactly the same in 2nd worksheet with 1st
worksheet including all the formating?



The help suggests that conditional formatting can't be made dependent
on other worksheets or workbooks. Probably the only way to achieve
this is with a VBA macro

Rgds
__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
  #3   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Mon, 19 Sep 2005 00:42:03 -0700, GarryKhoo
wrote:

I have 2 worksheet.

The first worksheet1 Cell e.g. A2 have formating such as "What a good day"
with "What" in Red color, "a good day" in Green color and entire word in Bold.

On 2nd worksheet2, I put " =worksheet1!A2 ". The result only the words but
without the formating.

Please help how can I display exactly the same in 2nd worksheet with 1st
worksheet including all the formating?


Without using VBA:

1. Select worksheet1!A2
2. Edit/Copy
3. Select worksheet2!targetcell
4. Edit/Paste

There is no way for a worksheet formula to result in letters that are formatted
with different colors, as far as I know. You must have an actual text string
in the target cell (and not a formula) in order to apply this sort of
formatting.

The above copy/paste routine could be automated with VBA.


--ron
  #4   Report Post  
GarryKhoo
 
Posts: n/a
Default

Hi Ron,

Do you have sample code for VBA? Mind to share?


--
Thanks a lot.

Best Regards,
Garry Khoo


"Ron Rosenfeld" wrote:

On Mon, 19 Sep 2005 00:42:03 -0700, GarryKhoo
wrote:

I have 2 worksheet.

The first worksheet1 Cell e.g. A2 have formating such as "What a good day"
with "What" in Red color, "a good day" in Green color and entire word in Bold.

On 2nd worksheet2, I put " =worksheet1!A2 ". The result only the words but
without the formating.

Please help how can I display exactly the same in 2nd worksheet with 1st
worksheet including all the formating?


Without using VBA:

1. Select worksheet1!A2
2. Edit/Copy
3. Select worksheet2!targetcell
4. Edit/Paste

There is no way for a worksheet formula to result in letters that are formatted
with different colors, as far as I know. You must have an actual text string
in the target cell (and not a formula) in order to apply this sort of
formatting.

The above copy/paste routine could be automated with VBA.


--ron

  #5   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Mon, 19 Sep 2005 18:19:01 -0700, GarryKhoo
wrote:

Hi Ron,

Do you have sample code for VBA? Mind to share?




Sub foo()
Worksheets("Sheet2").Range("A1:A11").Copy _
(Worksheets("Sheet1").Range("A2"))
End Sub

will copy Sheet2!A1:A11 to Sheet2!A2:A12 -- contents and formatting and all.

But the specifics of how you implement something like this depends on the
details of your workbook.

You can also just record a macro, but the code gets more involved when you do
that.
--ron


  #6   Report Post  
GarryKhoo
 
Posts: n/a
Default

You are great !!!! thanks pal.

--
Thanks a lot.

Best Regards,
Garry Khoo


"Ron Rosenfeld" wrote:

On Mon, 19 Sep 2005 18:19:01 -0700, GarryKhoo
wrote:

Hi Ron,

Do you have sample code for VBA? Mind to share?




Sub foo()
Worksheets("Sheet2").Range("A1:A11").Copy _
(Worksheets("Sheet1").Range("A2"))
End Sub

will copy Sheet2!A1:A11 to Sheet2!A2:A12 -- contents and formatting and all.

But the specifics of how you implement something like this depends on the
details of your workbook.

You can also just record a macro, but the code gets more involved when you do
that.
--ron

  #7   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Mon, 19 Sep 2005 23:41:03 -0700, GarryKhoo
wrote:

You are great !!!! thanks pal.


You're welcome.
--ron
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
simple if then function amy Excel Worksheet Functions 4 July 6th 05 05:36 PM
Simple Simple Excel usage question BookerW Excel Discussion (Misc queries) 1 June 23rd 05 10:06 PM
Help with what should be a simple formula B Millar via OfficeKB.com Excel Worksheet Functions 2 June 16th 05 04:18 PM
Help with a simple formula PghPatti Excel Discussion (Misc queries) 11 February 13th 05 02:09 PM
Simple But Stumped Brian Keanie Excel Discussion (Misc queries) 3 February 5th 05 02:56 AM


All times are GMT +1. The time now is 05:18 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"