Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Saving information to PERSONAL.XLS

I have a macro that asks the user for their name and email address during
execution.

How can I save this information so that they don't have to reenter it every
time they run the macro on a new spreadsheet? There's no point in saving it
to the current spreadsheet, as every time they run the macro, it's on a new
spreadsheet.

Can I store the information to PERSONAL.XLS, then automatically save
PERSONAL.XLS so they don't get prompted when closing Excel, and then go get
their hat information the next time they run the macro on a new spreadsheet?

Thanks!
Dee

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Saving information to PERSONAL.XLS

I don't think you should be touching their personal.xls. In fact, if you tried
it with my personal.xls, you'd have to add some more code (mine is marked
read-only in windows explorer).

And since it's my personal workbook, I update it with changes and it may break
your code.

You could save the data in a plain old text file (*.txt or *.ini) or you could
save the data in the user's registry.

Take a look at SaveSetting and GetSetting in VBA's help for sample code.

Dee Sperling wrote:

I have a macro that asks the user for their name and email address during
execution.

How can I save this information so that they don't have to reenter it every
time they run the macro on a new spreadsheet? There's no point in saving it
to the current spreadsheet, as every time they run the macro, it's on a new
spreadsheet.

Can I store the information to PERSONAL.XLS, then automatically save
PERSONAL.XLS so they don't get prompted when closing Excel, and then go get
their hat information the next time they run the macro on a new spreadsheet?

Thanks!
Dee


--

Dave Peterson
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
saving styles into the personal workbook Louise Excel Discussion (Misc queries) 4 January 10th 07 03:29 PM
Illinois Personal Information Protection Act [email protected] Excel Worksheet Functions 0 August 16th 05 03:15 AM
Removing Personal Information (Author etc) Shashi Bhosale Excel Programming 2 August 30th 04 08:02 PM
saving file as personal.xls Hans Excel Programming 2 April 27th 04 03:59 PM


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