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 / New Users / January 2006

Tip: Looking for answers? Try searching our database.

Some help needed

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
propolis - 28 Jan 2006 10:43 GMT
Hi,

I have a row that calculates various results.  The user inputs th
choices from a cell that has validation.

Now when the row has been completed, you have a total which is fine.

Now, when you open the workbook again, the previous selected option
are still there (user selected).  When you clear these maually, I ge
#VALUE! in the cells with formulas.

How do I prevent the error from showing up.

Also, how can I make the sheet have a reset option or when it  open
all user input fiels will be zero
Bob Phillips - 28 Jan 2006 11:00 GMT
Test for a blank in your formulae

=IF(cell="","",your_formula)

And to initialise

Private Sub Workbook_Open()
   With Worksheets("Sheet1")
       .Range("A1").Value = ""
       'etc
   End With
End Sub

'To add this, go to the VB IDE (ALT-F11 from Excel), and in
'the explorer pane, select your workbook. Then select the
'ThisWorkbook object (it's in Microsoft Excel Objects which
'might need expanding). Double-click the ThisWorkbook and
'a code window will open up. Copy this code into there,
'changing the caption and action to suit.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

> Hi,
>
[quoted text clipped - 19 lines]
> propolis's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=5044
> View this thread: http://www.excelforum.com/showthread.php?threadid=505993
 
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.