Home Menu

Site Navigation


Notices

General Chat General discussion. Want to chat about anything not covered in another forum - This is the place!

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 24-03-2010, 10:03 PM #1
Lae Lae is offline
Member
 
Join Date: Jun 2009
Posts: 34
Lae Lae is offline
Member
 
Join Date: Jun 2009
Posts: 34
Default Anyone here any good with Excel?

Hey all, basically I want to create a Reset macro that clears the contents of certain cells, but also resets the combo boxes to "Please Select". Here's some visual aid



Here's the code I'm using now, pretty basic. Really appreciate it if anyone can help

Sub Reset()
'
' Reset Macro
'
'
' Keyboard Shortcut: Ctrl+z
'

Range("E8").Select
Selection.ClearContents
Range("E9").Select
Selection.ClearContents
Range("E10").Select
Selection.ClearContents
Range("E11").Select
Selection.ClearContents
Range("E12").Select
Selection.ClearContents
Range("E13").Select
Selection.ClearContents
Range("E14").Select
Selection.ClearContents
Range("E15").Select
Selection.ClearContents
Range("E16").Select
Selection.ClearContents
Range("E17").Select
Selection.ClearContents
Range("E18").Select
Selection.ClearContents
Range("E19").Select
Selection.ClearContents
Range("E20").Select
Selection.ClearContents
Range("E21").Select
Selection.ClearContents
Range("H12").Select
Selection.ClearContents
Range("I6").Select
Selection.ClearContents
Range("I7").Select
Selection.ClearContents
Range("I8").Select
Selection.ClearContents
Range("I4").Select
Selection.ClearContents
Range("C3").Select

End Sub
Lae is offline   Reply With QuoteReply With Quote
 

Bookmark/share this topic

Tags
excel, good


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:59 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
 

About Us ThisisBigBrother.com

"Big Brother and UK Television Forum. Est. 2001"

 

© 2023
no new posts