Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mhart210
 
Posts: n/a
Default Populate required cells prior to saving


I need help with a form to be used by many people. There are several
fields that I would like to have populated with text, date, phone
number, etc. before the user can save the form. Is there any way to
force someone to enter a field prior to saving the worksheet?


--
mhart210
------------------------------------------------------------------------
mhart210's Profile: http://www.excelforum.com/member.php...o&userid=26413
View this thread: http://www.excelforum.com/showthread...hreadid=556608

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gord Dibben
 
Posts: n/a
Default Populate required cells prior to saving

You can have Before_Save code in ThisWorkbook module that won't let the user
save/close the workbook.

The efficacy of this hinges upon the user enabling macros when opening the
workbook.

Of course, you have to make the workbook unusable if users decide to disable
macros.

That is another set of code.


Gord Dibben MS Excel MVP


Gord Dibben MS Excel MVP

On Wed, 28 Jun 2006 13:32:01 -0500, mhart210
wrote:


I need help with a form to be used by many people. There are several
fields that I would like to have populated with text, date, phone
number, etc. before the user can save the form. Is there any way to
force someone to enter a field prior to saving the worksheet?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mhart210
 
Posts: n/a
Default Populate required cells prior to saving


Thank you for the tip, of course you have peaked my interest in the
disabling of the worksheet. Would I use deactivate for this?


--
mhart210
------------------------------------------------------------------------
mhart210's Profile: http://www.excelforum.com/member.php...o&userid=26413
View this thread: http://www.excelforum.com/showthread...hreadid=556608

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gord Dibben
 
Posts: n/a
Default Populate required cells prior to saving

You add a sheet to the workbook with a message "If you have disabled macros,
this workbook is useless" or similarly frightening.

In Before_Close sub you xlveryhidden all the sheets but that one.

If users open the workbook with macros disabled, this is all they will see.

If macros are enabled, your Workbook_Open code will unhide the other sheets and
hide the message sheet and your Before_Save code will be enabled also.


Gord



On Thu, 29 Jun 2006 07:06:15 -0500, mhart210
wrote:


Thank you for the tip, of course you have peaked my interest in the
disabling of the worksheet. Would I use deactivate for this?


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mhart210
 
Posts: n/a
Default Populate required cells prior to saving


Thanks. Very much apperciated!!!!


--
mhart210
------------------------------------------------------------------------
mhart210's Profile: http://www.excelforum.com/member.php...o&userid=26413
View this thread: http://www.excelforum.com/showthread...hreadid=556608

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 some cells Bunnis Excel Worksheet Functions 1 June 28th 06 06:21 AM
Locking The Cells with Input At The Time of Saving The File In Calif Excel Discussion (Misc queries) 2 September 10th 05 05:33 PM
How do I force a user to fill in all cells in excel before saving tomtomtomtomtom Excel Discussion (Misc queries) 1 August 16th 05 06:35 PM
To safety merge cells without data destroyed, and smart unmerge! Kevin Excel Discussion (Misc queries) 0 December 30th 04 07:17 AM
Heps to design Locked/Unlocked cells in protected worksheet Kevin Excel Discussion (Misc queries) 0 December 30th 04 07:09 AM


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