LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Problem creating a macro

I am still trying to learn the in's and out's of macros. I need help.
I have a spreadsheet with a range from A1:a3200. I have started a
macro to find some text in the H column. This macro keeps deleting
the headers in the first 2 rows. Also, I need to find a way to hide
rows that have the number 1 in columns X, AC, AH, AM and AR. Here is
what I have so far.


Sub P690_Qtr1_Macro()


Dim rngCell As Range
Application.ScreenUpdating = False
With ActiveSheet
Intersect(.UsedRange, _
Columns("H")).EntireRow.Hidden = False
For Each rngCell In Intersect(.UsedRange, _
Columns("H"))
If rngCell = ("AIX") = False And _
rngCell = ("AIX - P690") = False And _
rngCell = ("AIX - P660") = False And _
rngCell = ("AIX - P630") = False Then _
rngCell.EntireRow.Hidden = True

Next rngCell

End With
Application.ScreenUpdating = True
End Sub

I haven't been successful at getting past this point. Any help that
you can give is GREATLY appreciated.

Denise Reaves
New Member
 
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
Problem creating named ranges in a Macro! LABKHAND Excel Discussion (Misc queries) 2 January 8th 10 04:58 PM
Problem with creating pivottable Ruben Excel Discussion (Misc queries) 0 August 27th 08 11:45 AM
Macro creating chart gallery giving problem Pranav Vaidya Charts and Charting in Excel 0 August 8th 07 12:02 PM
Creating Names Baffling Problem Timmy Mac1 Excel Discussion (Misc queries) 4 August 22nd 06 09:00 AM
Problem with creating a Word Document Jens 'Kluesi' Kluesener Excel Programming 0 September 22nd 03 12:04 PM


All times are GMT +1. The time now is 12:07 PM.

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"