Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-05-2014, 12:48 AM
sufian,naeem sufian,naeem is offline Proper Text Format Windows 7 32bit Proper Text Format Office 2007
Novice
Proper Text Format
 
Join Date: May 2014
Posts: 2
sufian,naeem is on a distinguished road
Default Proper Text Format

What If I want to Capitalize First letters in 2 Cells that are A8 and A10 only


What would be the Macro/Code ?
Reply With Quote
  #2  
Old 05-05-2014, 05:59 AM
macropod's Avatar
macropod macropod is offline Proper Text Format Windows 7 32bit Proper Text Format Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Post

Why not just type the capitals? A lot less mucking around than using macros or formulae!

As for the macro, you could use:
Code:
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Intersect(Target, Range("A8")) Is Nothing Then
  If Intersect(Target, Range("A10")) Is Nothing Then Exit Sub
End If
Target.Value = WorksheetFunction.Proper(Target.Text)
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Proper Text Format Find text, format part of text in italic d4okeefe Word VBA 18 06-30-2022 11:35 PM
Macro to find text in between two characters and then format selected text? qcom Word 5 02-19-2015 11:23 PM
Proper Text Format Proper way to calculate tables in document rmw85 Word Tables 3 10-11-2012 06:02 PM
Proper Text Format Proper Excel Table of Contents (ToC) judicial85 Excel 1 10-23-2011 01:35 PM
Objective: Automatically export email text,attachment text to DB friendly format SilentLee Outlook 0 11-14-2010 02:45 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:19 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft