Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Code - Clear and Insert & If Statement


Hi,

I'm stuck. I want to do the following

For Sub Clear_advance_filter()

1. Clear range called "Clear_Area" which is A5 to L9.
2. Then insert "-" in range called "Clear" which is A5 to A9
3. Check to see if ActiveSheet.ShowAllData = False. If true exit su
(filter not on and if False then Show all.

For Sub Advance_Filter_master ()

1. If range Clear_Area A5 to L9 has text then delete Clear A5 to A9
----------------------------------------------------

'this Clears range
Range("Clear").ClearContents
'selects A3 and inserts the -

'This shows all
ActiveSheet.ShowAllData
' go home
Range("A1").Select
End Sub

---------------------------------------------------

Sub Advance_Filter_master()

Range("filter_range_master").AdvancedFilte
Action:=xlFilterInPlace, CriteriaRange:= _
Range("Criteria_m"), Unique:=False

End Sub

-----------------------------------------------------

Thanks in advance

VBA Noo

--
VBA Noo
-----------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...fo&userid=3383
View this thread: http://www.excelforum.com/showthread.php?threadid=56330

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
Code to clear contents jk Excel Worksheet Functions 3 September 4th 06 06:25 PM
Insert macro name in code on call statement. MarvInBoise Excel Programming 2 July 7th 06 06:05 PM
Insert Decimal Places and Clear Zeros Gladys Excel Discussion (Misc queries) 2 May 5th 06 08:59 PM
How do I insert a 'clear all' button in excel? Nick Excel Worksheet Functions 3 December 13th 04 11:59 AM
Clear row contents code Rohit Thomas Excel Programming 0 July 25th 03 10:38 PM


All times are GMT +1. The time now is 12:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"