formatting

shanshan4ever

New Member
Joined
Dec 15, 2005
Messages
9
hi all,
it is possible to add a word "std" on each cells after i enter a number value. so i have 187 std, 190 std etc instead of typing 1 9 0 s t d.
thanks
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Does the value need to actually exist, or just show up in the cell? (ie. Formatting versus actual text in the cell)

Custom format the cells to this.
@ "std"

And std will appear after each Cell.

HTH
Cal

PS-If you want the value to exist in the cell it will require a vba event driven macro.
 
Upvote 0
Since everyone else did the other solution, I thought I would give you some vba. This will add std to the end of every entry in your worksheet. Just paste it to the vba worksheet that you are doing the entry in.

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    Application.EnableEvents = False
    Target = Target & "std"
    Application.EnableEvents = True
End Sub

HTH
Cal
 
Upvote 0

Forum statistics

Threads
1,214,877
Messages
6,122,051
Members
449,064
Latest member
scottdog129

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top