Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
CC
 
Posts: n/a
Default How Do I Install a Reset or Clear Function

I have created an electronic order form and would like to make it reusable.
Is it possible to install a Reset or a Clear button, so the 'quantity'
columns will go back to 0?
  #2   Report Post  
Paul B
 
Posts: n/a
Default

CC, you could use something like this and assign it to a button, or you may
want to save the form as a template, that way when you open it you will have
a blank form to start with each time

Sub Clear_Column_A()
'Clears column A
Columns("A:A").ClearContents
End Sub
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"CC" wrote in message
...
I have created an electronic order form and would like to make it reusable.
Is it possible to install a Reset or a Clear button, so the 'quantity'
columns will go back to 0?



  #3   Report Post  
Gord Dibben
 
Posts: n/a
Default

CC

Assume you don't want to lose formulas.

CTRL + A(twice in 2003) to select all cells.

F5SpecialConstants. Choose what you do or do want to select then OK your
way out.

Right-clickClear Contents.

Record a macro while you do this and assign to a button.

Or make it a Template as Paul suggests.


Gord Dibben Excel MVP


On Tue, 8 Feb 2005 12:01:02 -0800, "CC" wrote:

I have created an electronic order form and would like to make it reusable.
Is it possible to install a Reset or a Clear button, so the 'quantity'
columns will go back to 0?


  #4   Report Post  
CC
 
Posts: n/a
Default

Hey Gord:
This works GREAT...until I Protect the sheet. I have the "Clear Columns"
unlocked, and the rest locked. Any suggestions?

"Gord Dibben" wrote:

CC

Assume you don't want to lose formulas.

CTRL + A(twice in 2003) to select all cells.

F5SpecialConstants. Choose what you do or do want to select then OK your
way out.

Right-clickClear Contents.

Record a macro while you do this and assign to a button.

Or make it a Template as Paul suggests.


Gord Dibben Excel MVP


On Tue, 8 Feb 2005 12:01:02 -0800, "CC" wrote:

I have created an electronic order form and would like to make it reusable.
Is it possible to install a Reset or a Clear button, so the 'quantity'
columns will go back to 0?



  #5   Report Post  
Gord Dibben
 
Posts: n/a
Default

CC

Which version of Excel do you have that has a "Clear Columns" option when
protecting a sheet?

2002 and 2003 do not have this option.

In any case, you will have to unprotect the sheet to have F5Special
available.

You could do the whole thing using a macro if you wish to venture into that.

Sub Macro1()

ActiveSheet.Unprotect Password:="justme" 'your PWord
Cells.Select
'if just want one column use Columns("A:A").Select

Selection.SpecialCells(xlCellTypeConstants, 1).Select
Selection.ClearContents

ActiveSheet.Protect Password:="justme", DrawingObjects:=True, _
Contents:=True, Scenarios:=True

End Sub

This code unprotects the sheet, selects all cells then selects numerics cells
only and clears those then re-protects the sheet.


Gord

On Thu, 10 Feb 2005 10:35:10 -0800, "CC" wrote:

Hey Gord:
This works GREAT...until I Protect the sheet. I have the "Clear Columns"
unlocked, and the rest locked. Any suggestions?

"Gord Dibben" wrote:

CC

Assume you don't want to lose formulas.

CTRL + A(twice in 2003) to select all cells.

F5SpecialConstants. Choose what you do or do want to select then OK your
way out.

Right-clickClear Contents.

Record a macro while you do this and assign to a button.

Or make it a Template as Paul suggests.


Gord Dibben Excel MVP


On Tue, 8 Feb 2005 12:01:02 -0800, "CC" wrote:

I have created an electronic order form and would like to make it reusable.
Is it possible to install a Reset or a Clear button, so the 'quantity'
columns will go back to 0?




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
Trim function doesn't clean out ASCII Code 160 (Space) Ronald Dodge Excel Worksheet Functions 6 January 27th 05 03:48 AM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
I cant use englisch function names in a swedich version of excel PE Excel Discussion (Misc queries) 2 December 7th 04 01:00 AM
change function variable prompts?? thinkingfield Excel Worksheet Functions 1 November 8th 04 04:01 PM
need to save values from a function before it changes Ron Excel Worksheet Functions 1 October 29th 04 06:29 AM


All times are GMT +1. The time now is 08:44 PM.

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"