LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default VBA for converting data into various CASES.

.. only need the sub to convert to all caps

For your needs, try this beauty by Gord Dibben ..

Sub Upper_Case()
'Gord Dibben .misc
Dim cell As Range
'rotate through all the cells and convert to upper case
For Each cell In Intersect(Selection, _
ActiveSheet.UsedRange)
cell.Value = UCase(cell.Value)
Next
End Sub

As to your problem:
.. right-click on autoshape - assign macro
Excel2000 doesn't say 'assign macro'


I don't know/have xl2000, so I'm not sure why, although the behaviour should
be similar.

Maybe try it again: After installing Gord's sub above, in Excel, draw say, a
rectangle on the sheet. Then just right-click on it. There should be an
option "Assign Macro". Choose this option, then select "Upper_Case" in the
dialog and click OK.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"lilleke" wrote in message
...
Max -
I found this very helpful, however I only need the sub to convert to all
caps so I tried to eliminate the other stuff and did not work.

can you tweek the sub below to only convert to all caps and i would also
appreciate step by step how to assign macro to an auto shape or button.

you say right-click on autoshape - assign macro - Excel2000 doesn't say
'assign macro' after I right click say the 3-D box- also in Form tool
bar -
assign sub to a button - didn't let me customize a button - either one is
ok
- please give me step by step. I have done the button one years ago and no
longer have any books to refer to.
thanking you in advance.
--
claudia



 
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
Inserting Filtered RC cell information into other worksheets Dennis Excel Discussion (Misc queries) 10 July 30th 05 01:54 AM
Pull Current Month's Data Out of List - Repost Karl Burrows Excel Discussion (Misc queries) 4 May 3rd 05 01:06 AM
Line Graph Data Recognition Nat Charts and Charting in Excel 2 April 30th 05 02:07 PM
Running Data Table using an input that triggers DDE linked data [email protected] Excel Discussion (Misc queries) 1 December 16th 04 11:56 AM
Data Table - does it work with DDE links and Stock Tickers? Post Tenebras Lux Excel Worksheet Functions 0 December 1st 04 05:17 PM


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