Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / July 2008

Tip: Looking for answers? Try searching our database.

Modules to be used for several different spreadsheets

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kelly - 31 Jul 2008 13:39 GMT
Yesterday I found the proper name case module in this discussion thread.  It
works, however I am having a hard time when I try to run this module on
different spreadsheets.  Is there a way that I can save the module and pick
it up and use it when I need to (kind of like a macro)?  Any help would be
greatly appreciated !!

Thanks for any help in advance.
Bob Phillips - 31 Jul 2008 14:00 GMT
Put it in your Personal.xls workbook.

Signature

__________________________________
HTH

Bob

> Yesterday I found the proper name case module in this discussion thread.
> It
[quoted text clipped - 5 lines]
>
> Thanks for any help in advance.
Kelly - 31 Jul 2008 14:10 GMT
OK, can you explain that a bit further, I am really new to the modules.  
Thanks !!!

> Put it in your Personal.xls workbook.
>
[quoted text clipped - 7 lines]
> >
> > Thanks for any help in advance.
Susan - 31 Jul 2008 14:21 GMT
if you have the workbook open that currently contains the module, in
the VBA editor you will see the name of that workbook, and the name of
"Personal.xls".  drag the module to the personal.xls & it will place a
copy there.  if you want, delete the original from the first workbook.
then, in the excel workbook, right click up in the toolbars and choose
"customize".  under "commands" go to "macros" & you will see a yellow
smilie face called custom button.  drag that up into your toolbars
wherever you want it.  right click the new yellow smilie face and
"assign macro", choosing the one in the personal.xls.  then click
"close".
now that button will run that macro whenever you click on it.

if you don't see personal.xls, that means one hasn't been created
yet.  record a simple macro & choose that it be stored in your
personal.xls, and that will create it.  you can always delete the
simple macro afterwards.

again, post your code if it needs to be made more general (without
specific sheet names, etc.).
hope that helps
:)
susan

> OK, can you explain that a bit further, I am really new to the modules.  
> Thanks !!!
[quoted text clipped - 18 lines]
>
> - Show quoted text -
Bob Phillips - 31 Jul 2008 15:30 GMT
Personal.xls is located in the XLStart directory, and is used to store
macros and
things that you want to be available to all workbooks, whenever you start
Excel.

You can create it by
- goto Tools>Macros>Record New Macro...
- Choose Personal Macro Workbook form the dropdown
- OK
- click the Stop button on the toolbar that pops-up

You now have a Personal.xls workbook. It is not visible though, it is hidden
by default (Windows>Unhide)

Signature

__________________________________
HTH

Bob

> OK, can you explain that a bit further, I am really new to the modules.
> Thanks !!!
[quoted text clipped - 12 lines]
>> >
>> > Thanks for any help in advance.
Ron de Bruin - 31 Jul 2008 17:29 GMT
See also
http://www.rondebruin.nl/personal.htm

Signature

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm

> OK, can you explain that a bit further, I am really new to the modules.  
> Thanks !!!
[quoted text clipped - 10 lines]
>> >
>> > Thanks for any help in advance.
Susan - 31 Jul 2008 14:02 GMT
you could copy it into personal.xls and then attach it to a toolbar
button - then it would be available to any spreadsheet you use.
you may need to fix coding regarding sheet names if they are specified
- post your code if you want somebody to look at it in order to make
it more general.
:)
susan

> Yesterday I found the proper name case module in this discussion thread.  It
> works, however I am having a hard time when I try to run this module on
[quoted text clipped - 3 lines]
>
> Thanks for any help in advance.
Kelly - 31 Jul 2008 14:17 GMT
This is the code I am wanting to use for many spreadsheets that we have
imported.

Sub Proper()
Dim Cell As Range
Application.ScreenUpdating = False
       For Each Cell In Selection
            Cell.Formula = Application.Proper(Cell.Formula)
   Next
Application.ScreenUpdating = True
End Sub

So I would LOVE to have a toolbar button to use.  If I can't get the
toolbar, just being able to go to a saved module somewhere and click it when
I need to use it would be great.  Again, sorry I am new to all this (codes,
modules etc...) but any help would be appreciated.

Thanks

> you could copy it into personal.xls and then attach it to a toolbar
> button - then it would be available to any spreadsheet you use.
[quoted text clipped - 11 lines]
> >
> > Thanks for any help in advance.
Susan - 31 Jul 2008 14:26 GMT
the code looks generalized enough to run on any worksheet.
susan

> This is the code I am wanting to use for many spreadsheets that we have
> imported.
[quoted text clipped - 32 lines]
>
> - Show quoted text -
Kelly - 31 Jul 2008 14:42 GMT
That is good news.  So when you say save it to personal.xls, I don't
understand how that can help me to open up another spreadsheet but use the
personal module, sorry for not understanding this.

> the code looks generalized enough to run on any worksheet.
> susan
[quoted text clipped - 35 lines]
> >
> > - Show quoted text -
Susan - 31 Jul 2008 14:51 GMT
personal.xls is available all the time, no matter what spreadsheet you
have open.  the toolbar button will also be available all the time, no
matter what spreadsheet you have open.  when you assign a button to a
module stored in personal.xls, you will always have it available.  i
don't know how to explain it better than that!  :)  try it, you'll
see.  once you get it set up, close the VBA editor, and close your
current spreadsheet.  close excel & say yes to saving changes to
personal.xls.  now open excel and open some other spreadsheet.  type
something in a cell in all caps (or all lower case).  select that text
cell and press your smilie face button.  it should change it to proper
case.
like i said, i don't know how else to explain it.
:)
susan

> That is good news.  So when you say save it to personal.xls, I don't
> understand how that can help me to open up another spreadsheet but use the
[quoted text clipped - 41 lines]
>
> - Show quoted text -
Rick Rothstein (MVP - VB) - 31 Jul 2008 15:34 GMT
Perhaps the description at this link will help (ignore the part about it
applying to XL2002 only)...

http://office.microsoft.com/en-us/excel/HA010872961033.aspx

Rick

> That is good news.  So when you say save it to personal.xls, I don't
> understand how that can help me to open up another spreadsheet but use the
[quoted text clipped - 46 lines]
>> >
>> > - Show quoted text -
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.