Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Formatting Linked Cells

Forsay I have the following text in one cell:

Bold text (such as a word) - normal text (such as the defenition)

I want to use this cell in a formula, so when it is updated on it's sheet,
the sheet that it's link to changes with it, but keeps that formatting.

At this time, when I call it (or link it) Excel removes all formatting. I
don't want to go into each cell and format it myself each time. There are
too many tabs/sheets.

Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Formatting Linked Cells

Formulae can only return values to their calling cells, they can't set
formatting. To do what you want would require replacing the formulae
with Event macro(s).

An example might be (put in the worksheet code module):

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Dim rDest As Range
Dim i As Long
Dim bFound As Boolean
bFound = True
With Target
Select Case .Address(False, False)
Case "A1"
Set rDest = Sheets("Sheet2").Range("J4")
Case "B3"
Set rDest = Sheets("Sheet3").Range("L17")
Case Else
bFound = False
End Select
If bFound Then
rDest.Value = .Text
For i = 1 To Len(.Text)
rDest.Characters(i, 1).Font.Bold = _
.Characters(i, 1).Font.Bold
Next i
End If
End With
End Sub

or, since changing format doesn't fire the worksheet change event, you
may want to use the worksheet_calculate, worksheet_Activate, or
workbook_SheetActivate events instead.


In article ,
Billy Bob Danny Frank <Billy Bob Danny
wrote:

Forsay I have the following text in one cell:

Bold text (such as a word) - normal text (such as the defenition)

I want to use this cell in a formula, so when it is updated on it's sheet,
the sheet that it's link to changes with it, but keeps that formatting.

At this time, when I call it (or link it) Excel removes all formatting. I
don't want to go into each cell and format it myself each time. There are
too many tabs/sheets.

Any suggestions?

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
Linked formatting across worksheets Will Emms Excel Discussion (Misc queries) 1 March 19th 07 02:24 PM
Linked Cells Staying With Cells Once Linked Workbook Update. [email protected] Excel Worksheet Functions 0 June 6th 06 09:32 AM
Linked Cell Formatting vman252 Excel Worksheet Functions 1 March 12th 06 02:14 AM
Linked text formatting vman252 Excel Discussion (Misc queries) 1 March 12th 06 01:52 AM
Transfer Cell Formatting for linked cells Scott Excel Discussion (Misc queries) 2 November 23rd 05 11:04 PM


All times are GMT +1. The time now is 12:36 AM.

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"