#1   Report Post  
Posted to microsoft.public.excel.misc
matt
 
Posts: n/a
Default Blank forms help!

I have to clear a worksheet except for certain things, so a new bill can be
entered. The trouble is it only deletes the actual combo box that was there
when the macro was recorded any way of getting round it?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Blank forms help!

Maybe you can select the range of cells to clear.

Then give it a nice name (insert|name|define).

Then when you want to clear those cells, you can:
edit|goto|type in that name (or choose it from the list)
click ok.

Hit the delete key.

Heck, you could even turn that into a small macro and drop a button from the
forms toolbar on that sheet that has the macro assigned to it.

Option Explicit
Sub testme()

Dim resp As Long

resp = MsgBox(prompt:="are you sure you want to clear the input cells?", _
Buttons:=vbYesNo)

If resp = vbYes Then
ActiveSheet.Range("Myinputdata").ClearContents
End If
End Sub


matt wrote:

I have to clear a worksheet except for certain things, so a new bill can be
entered. The trouble is it only deletes the actual combo box that was there
when the macro was recorded any way of getting round it?

Thanks


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
matt
 
Posts: n/a
Default Blank forms help!

little help please

"matt" wrote:

I have to clear a worksheet except for certain things, so a new bill can be
entered. The trouble is it only deletes the actual combo box that was there
when the macro was recorded any way of getting round it?

Thanks

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
enter numbers in blank cells bill gras Excel Worksheet Functions 2 September 21st 05 01:17 PM
CONCATENATE problem with blank cells roger_home Excel Discussion (Misc queries) 1 August 17th 05 09:18 PM
Counting blank and filled cells within a range. greg7468 Excel Discussion (Misc queries) 3 June 28th 05 10:41 PM
blank cells R.VENKATARAMAN Excel Discussion (Misc queries) 1 April 6th 05 10:25 AM
VLOOKUP, OFFSET, MATCH PROBLEM, HELP? Steve Excel Worksheet Functions 0 January 30th 05 09:11 PM


All times are GMT +1. The time now is 04:46 AM.

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"