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: 2
Default Simple VBA problem

Hi,

This is my first attempt at writing VBA from a book so excuse the
naivety.

Sub Hidereconciledrows()

Dim i As Integer
i = 2
Do Until IsEmpty(Cells(i, 18))
If Cells(i, 18) = "Reconciles <= 7 day tolerance" Then
Selection.EntireRow.Hidden = True And ActiveCell.Offset(1, 0).Select
ElseIf Cells(i, 18) = "manually reconcile" Then
ActiveCell.Offset(1, 0).Select
End If
i = i + 1
Loop
End Sub

I am performing a reconcilation and if a particular figure matches
another the narritive "Reconciles <= 7 day tolerance" is formularised
to appear in cell(?) column R if the figure does not match then the
narritive "manually reconcile" is formularised to appear.

What I am attempting with VBA is if the cell contains "Reconciles <= 7
day tolerance" the macro will select the entire row and hide the row,
it will then select the next row down, in column R and perform the
same test. When the cell in column R is blank the procedure ends.

Obviosly what I have wriiten above is not working, can someone please
point me in the right direction?

Thanks
Grant
 
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
Simple IF problem Trevor Aiston[_2_] Excel Worksheet Functions 0 September 12th 09 03:18 PM
Simple problem, simple formula, no FUNCTION ! Ron@Buy Excel Worksheet Functions 6 September 28th 07 04:51 PM
Simple problem excelnovice1 New Users to Excel 3 June 29th 06 11:19 AM
another simple problem... London Excel Worksheet Functions 8 July 22nd 05 08:43 PM
Need help with a simple problem Gary[_13_] Excel Programming 2 January 3rd 04 01:58 PM


All times are GMT +1. The time now is 05:16 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"