Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default Problem with leap-frogging myCell Range

2003

Here is what I am trying to do the (code below is not all
of the code - just enough for explanation):

For Each myCell in myRange

Sheets("Constants Input").Autofilter
If Sheets("Constants Input").AutoFilterMode = True Then
Sheets("Constants Input").UsedRange.AutoFilter
End If
FilterCriteria = 33
With Sheets("Constants Input").Range("A1:F" & Cells(Rows.Count, _
"B").End(xlUp).Row)
.AutoFilter Field:=2, Criteria1:="<"
.AutoFilter Field:=4, Criteria1:="=" & FilterCriteria
End With

myCell.Offset(0, 3).Formula = Sheets("Constants Input").Range("E2:E" _
& Cells(Rows.Count, "E").End(xlUp).Row).SpecialCells(xlVisible) _
.Cells(2, 5).Formula

'First time through the loop ... Cells(2, 5) returns the formula in
'"E2" which is fine. But each succeeding myCell the address is "I2"
'

Next Mycell

I am now Too Close to the Problem to see something really obvious.

What I need is for every formula in Range("E2:E" &
VisibleCells.Rows.count) to have exactly the same formula as in the
first visible cell in Column "E" after the FilterCriteria is changed
for each myCell "D2:Dxxxxx"


TIA EagleOne

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
leap year problem. 2vao Excel Discussion (Misc queries) 14 July 24th 09 03:04 PM
ListBox1. add item myCell.entirerow Vikram Dhemare Excel Discussion (Misc queries) 3 April 8th 08 01:49 AM
Is Leap Day between Date Range? [email protected] Excel Worksheet Functions 4 August 3rd 06 04:22 PM
Leap year date problem peter.thompson Excel Worksheet Functions 2 January 9th 06 11:31 PM
Value of next visible mycell within a rng Rasmus[_3_] Excel Programming 8 April 16th 05 01:03 AM


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