Forms and formulas

AlexL2

New Member
Joined
Jul 14, 2010
Messages
12
I was wondering if I could get a hand with some problems.

-Is there a formula to delete rows from a worksheet without deleting them by hand.

-I am attempting to build a form that automatically fills in a specific worksheet depending on the first choice in the form. Is there a way to make a function/formula that will know which worksheet to place the information in other than an IF statement.

-Is there a way to create a button (like a submit button) that will move to the next row of the selected worksheet and clear the form.

If you need any additional information please let me know.
 
-Is there a formula to delete rows from a worksheet without deleting them by hand.

No there is not a formula but you can write a macro to accomplish this.
 
Upvote 0
For a macro, if you want to delete the entire row of a row 1

Try
Code:
     Rows(1).EntireRow.Delete

If you want to delete rows which have blank cells in column A

Try
Code:
     Columns(1).SpecialCells(xlCellTypeBlanks).EntireRow.Delete
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top