Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need Applescript for Converting Upper/Lower Case

hi,

i have a situation where i frequently receive xls files with lots o
text written in ALL CAPS. i need for that text to use "proper
capitalization (Title Case would be an adequate alternative, and lowe
case would be a last resort.), but am looking to avoid lots of typing.

i'm on mac osx, and believe i'd prefer an applescript solution. i'v
dabbled a bit in applescript but don't know enough to pull this on
off. an applescript would also be excellent because i figure i coul
probably modify it without too much trouble, to work with othe
applications.

if there is a non-applescript solution, i'd be interested to know tha
as well. i could also make use of a PC solution, such as a VBscript
if necessary.

thanks!
jo

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Need Applescript for Converting Upper/Lower Case

Here is something that will work that I found in an example ages ago.

Can't remember who developed it


Sub ConvertToTitle()
Dim wks As Worksheet
Dim rngCell As Range
Dim iCols As Integer
Dim iRows As Integer

For Each wks In Sheets

With wks.UsedRange
For iCols = 1 To .Columns.Count
For iRows = 1 To .Rows.Count
Set rngCell = .Cells(iRows, iCols)
If Not rngCell.HasFormula Then _
rngCell.Value = StrConv(rngCell.Text, 3)
Next iRows
Next iCols
End With
Next wks

End Sub

"Br0wn Recloose " wrote in
message ...
hi,

i have a situation where i frequently receive xls files with lots of
text written in ALL CAPS. i need for that text to use "proper"
capitalization (Title Case would be an adequate alternative, and lower
case would be a last resort.), but am looking to avoid lots of typing.

i'm on mac osx, and believe i'd prefer an applescript solution. i've
dabbled a bit in applescript but don't know enough to pull this one
off. an applescript would also be excellent because i figure i could
probably modify it without too much trouble, to work with other
applications.

if there is a non-applescript solution, i'd be interested to know that
as well. i could also make use of a PC solution, such as a VBscript,
if necessary.

thanks!
jon


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need Applescript for Converting Upper/Lower Case

looks good, i'll give this a whirl next time i'm near a PC! if anybody
has an applescript equivalent that would be great.

thanks,
jon


---
Message posted from http://www.ExcelForum.com/

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Need Applescript for Converting Upper/Lower Case

You can use applescript - it depends on what version of XL you're using
- XL04 exposes the entire Excel object model to applescript, XLv.X
doesn't.

But you don't need to have a PC to use VBA (which is what David Adamson
gave you) - All current versions of MacXL use VBA, for the most part
compatible with WinXL.




In article ,
Br0wn Recloose wrote:

looks good, i'll give this a whirl next time i'm near a PC! if anybody
has an applescript equivalent that would be great.

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
Converting upper case to lower case ILoveMyCorgi Excel Discussion (Misc queries) 4 January 21st 10 08:14 PM
Changing upper case characters to upper/lower Richard Zignego Excel Discussion (Misc queries) 1 December 17th 07 10:09 PM
Changing file in all upper case to upper and lower case Sagit Excel Discussion (Misc queries) 15 May 30th 07 06:08 AM
Change from mixed caps and upper lower to all upper lower case Fish''s Mermaid Excel Worksheet Functions 3 October 13th 06 02:15 PM
How do I convert all upper case excel sheet into upper and lower . DebDay Excel Discussion (Misc queries) 1 March 9th 05 08:31 PM


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