Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default Macro to Reset data input form

I have a worksheet set up as a data entry page to allow customers to select
features in a product. This data then generates a part number to capture that
particular set of features.

However, this leaves me with the Data Input form populated with the last
customer's selections. How can I write my macro to Reset the form to the
'blank' starting position? I envision having a 'Reset' box in the worksheet
to cue the Macro.

Thanks.

Mike

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 269
Default Macro to Reset data input form

Write the start of your macro first on a module sheet. You can write the
whole thing or start with one line and add additional lines later.

Sub Resetform()
Range("A1").ClearContents
......
(add cells as needed)
End Sub

Using ClearContents will leave formatting and validations intact

Make the reset box a Form Control command button and link it to this macro.
--
If this helps, please remember to click yes.


"MichaelRobert" wrote:

I have a worksheet set up as a data entry page to allow customers to select
features in a product. This data then generates a part number to capture that
particular set of features.

However, this leaves me with the Data Input form populated with the last
customer's selections. How can I write my macro to Reset the form to the
'blank' starting position? I envision having a 'Reset' box in the worksheet
to cue the Macro.

Thanks.

Mike

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default Macro to Reset data input form

Many thanks, Paul C.

Mike

"Paul C" wrote:

Write the start of your macro first on a module sheet. You can write the
whole thing or start with one line and add additional lines later.

Sub Resetform()
Range("A1").ClearContents
.....
(add cells as needed)
End Sub

Using ClearContents will leave formatting and validations intact

Make the reset box a Form Control command button and link it to this macro.
--
If this helps, please remember to click yes.


"MichaelRobert" wrote:

I have a worksheet set up as a data entry page to allow customers to select
features in a product. This data then generates a part number to capture that
particular set of features.

However, this leaves me with the Data Input form populated with the last
customer's selections. How can I write my macro to Reset the form to the
'blank' starting position? I envision having a 'Reset' box in the worksheet
to cue the Macro.

Thanks.

Mike

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default Macro to Reset data input form

The ClearContents command works fine in clearing the form. But ideally the
result of the 'Reset' will be to populate each of the cleared cells (Range
b9:c15) with the word 'Empty'.

Is their a command to specify the content of cells?

Thanks.

Mike

"MichaelRobert" wrote:

Many thanks, Paul C.

Mike

"Paul C" wrote:

Write the start of your macro first on a module sheet. You can write the
whole thing or start with one line and add additional lines later.

Sub Resetform()
Range("A1").ClearContents
.....
(add cells as needed)
End Sub

Using ClearContents will leave formatting and validations intact

Make the reset box a Form Control command button and link it to this macro.
--
If this helps, please remember to click yes.


"MichaelRobert" wrote:

I have a worksheet set up as a data entry page to allow customers to select
features in a product. This data then generates a part number to capture that
particular set of features.

However, this leaves me with the Data Input form populated with the last
customer's selections. How can I write my macro to Reset the form to the
'blank' starting position? I envision having a 'Reset' box in the worksheet
to cue the Macro.

Thanks.

Mike

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Macro to Reset data input form

Maybe...

worksheets("Sheet99999").range("b9:c15").value = "Empty"



MichaelRobert wrote:

The ClearContents command works fine in clearing the form. But ideally the
result of the 'Reset' will be to populate each of the cleared cells (Range
b9:c15) with the word 'Empty'.

Is their a command to specify the content of cells?

Thanks.

Mike

"MichaelRobert" wrote:

Many thanks, Paul C.

Mike

"Paul C" wrote:

Write the start of your macro first on a module sheet. You can write the
whole thing or start with one line and add additional lines later.

Sub Resetform()
Range("A1").ClearContents
.....
(add cells as needed)
End Sub

Using ClearContents will leave formatting and validations intact

Make the reset box a Form Control command button and link it to this macro.
--
If this helps, please remember to click yes.


"MichaelRobert" wrote:

I have a worksheet set up as a data entry page to allow customers to select
features in a product. This data then generates a part number to capture that
particular set of features.

However, this leaves me with the Data Input form populated with the last
customer's selections. How can I write my macro to Reset the form to the
'blank' starting position? I envision having a 'Reset' box in the worksheet
to cue the Macro.

Thanks.

Mike


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default Macro to Reset data input form

Thanks, Dave. Works like a charm!

Mike
"Dave Peterson" wrote:

Maybe...

worksheets("Sheet99999").range("b9:c15").value = "Empty"



MichaelRobert wrote:

The ClearContents command works fine in clearing the form. But ideally the
result of the 'Reset' will be to populate each of the cleared cells (Range
b9:c15) with the word 'Empty'.

Is their a command to specify the content of cells?

Thanks.

Mike

"MichaelRobert" wrote:

Many thanks, Paul C.

Mike

"Paul C" wrote:

Write the start of your macro first on a module sheet. You can write the
whole thing or start with one line and add additional lines later.

Sub Resetform()
Range("A1").ClearContents
.....
(add cells as needed)
End Sub

Using ClearContents will leave formatting and validations intact

Make the reset box a Form Control command button and link it to this macro.
--
If this helps, please remember to click yes.


"MichaelRobert" wrote:

I have a worksheet set up as a data entry page to allow customers to select
features in a product. This data then generates a part number to capture that
particular set of features.

However, this leaves me with the Data Input form populated with the last
customer's selections. How can I write my macro to Reset the form to the
'blank' starting position? I envision having a 'Reset' box in the worksheet
to cue the Macro.

Thanks.

Mike


--

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
input in number form is being multiplied by 1000 when i input. jweinograd Excel Discussion (Misc queries) 4 April 16th 07 11:18 PM
how to reset form pywhacket Excel Worksheet Functions 1 March 17th 06 02:54 PM
Clear"Reset" data input. Frick Excel Worksheet Functions 1 March 10th 06 11:40 PM
How can I have an input form to add a random no. to each input entry? saziz Excel Discussion (Misc queries) 2 January 25th 06 11:46 PM
format cell from data input to output form Brad Stevenson Excel Worksheet Functions 2 May 19th 05 06:04 PM


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