Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Mel Mel is offline
external usenet poster
 
Posts: 74
Default how do i automatically format repeated text

Please can someone tell me how to automatically format text that is repeated
throughout my spreadsheet e.g. Payment Received.

Many thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default how do i automatically format repeated text

One way is to use on the Edit Menu the Paste Special. Copy the cell with the
format you want, the go to Paste Special and select format only.

"Mel" wrote:

Please can someone tell me how to automatically format text that is repeated
throughout my spreadsheet e.g. Payment Received.

Many thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default how do i automatically format repeated text

Mel

I assume you want to type "payment received" and have it change to "Payment
Received".

The string of text "Payment Received" is not a format that can be transferred
to others cells.

You would need code to do this. One version could be..................

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Column 255 Then Exit Sub
On Error GoTo ErrHandler
Application.EnableEvents = False
If Target.Value = "payment received" Then
Target.Formula = Application.Proper(Target.Formula)
End If
ErrHandler:
Application.EnableEvents = True
End Sub

This is sheet event code. Right-click on the sheet tab and "View Code".

Copy/paste the code into that sheet module.


Gord Dibben MS Excel MVP

On Thu, 22 Feb 2007 00:16:10 -0800, Mel wrote:

Please can someone tell me how to automatically format text that is repeated
throughout my spreadsheet e.g. Payment Received.

Many thanks.


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
Repeated data into flat file format Paul Simon Excel Worksheet Functions 4 July 9th 06 04:33 AM
Printing text in a repeated cell/row that is longer than repeated Valerie Dyet Excel Discussion (Misc queries) 1 February 13th 06 03:27 AM
Editing Repeated Text Jonny Excel Worksheet Functions 2 November 3rd 05 11:52 AM
repeated text maria Excel Discussion (Misc queries) 2 February 10th 05 10:57 PM
How do I conditional format for data that's repeated Putty Excel Worksheet Functions 8 November 2nd 04 09:04 PM


All times are GMT +1. The time now is 06:00 AM.

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"