Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Excel VBA -Force users to populate custom form cells

You can use the BeforeClose event procedure to do this. In the
ThisWorkbook code module, use something like

Private Sub Workbook_BeforeClose(Cancel As Boolean)
If cells_are_incomplete Then
Cancel = True
End If
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"tschultz " wrote in
message ...
Hi,

Is there a way to force users of a custom form to populate

required
cells? I am currently using a macro button to send form data

by
e-mail. Prior to actual send, the macro verifies the mandatory

cells
are popluated. If not, the blank cell is selected to allow

entry.
This form will be moving to a terminal server in near future
eliminating the need for the send button. I still need to

verify
manadory cells are populated and allow users to enter data

prior to
closing file.

Any suggestions?

Thanks so much
tschultz


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



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
How to force users to open pdf in adobe through excel KRAND Excel Discussion (Misc queries) 0 August 11th 09 03:28 PM
force users to open pdf in adobe rather than IE in excel KRAND Excel Discussion (Misc queries) 0 August 11th 09 03:24 PM
How to force the use of a specific custom list in a excel 2007 cha velasques Excel Worksheet Functions 0 February 12th 09 10:07 AM
How to force the use of a specific custom list in a excel 2007 cha velasques Excel Worksheet Functions 0 February 11th 09 12:15 PM
How do I select cells and make the info populate into a form? jompeters Excel Worksheet Functions 0 January 7th 05 09:43 PM


All times are GMT +1. The time now is 12:19 PM.

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"