Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Steve,
Thanks for your help. Code as follows: Dim avRange As Range Dim findrange As Range Dim testRange As Range Dim FTDRange As Range Dim FTD As Range Dim i As Long Dim LastColumn As Integer Dim vl As Long Dim ftd2range As Range 'Application.ScreenUpdating = False 'ActiveSheet.Range.SpecialCells(xlCellTypeLastCell ).Select Set FTD = Cells.Find("FTD Sum of Spread") Set findrange = Cells.Find("FTD Sum of Spread").End(xlToRight).End(xlToRight).End(xlToRig ht) _ .End(xlToRight).End(xlToLeft) Set FTDRange = Range(findrange, findrange.End(xlUp)) FTDRange.Select Selection.Copy FTDRange.Offset(0, 1).PasteSpecial (xlPasteFormats) Application.CutCopyMode = False FTDRange(1, 2).Value = "%FTD" Set FTDRange = Selection With FTDRange .Resize(.Rows.Count - 1).Offset(1, 0).Select Set FTDRange = Selection End With For i = 1 To FTDRange.Cells.Rows.Count FTDRange.Cells(i).Value = (FTDRange.Cells(i).Offset(0, -1).Value / findrange.Value) * 100 i = i + 1 Next i Regards, Adrian ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
"Type mismatch" when I try to fill an Array variable with "+" | Excel Discussion (Misc queries) | |||
how do I type "itis" without Excel putting a space "it is"? | Excel Worksheet Functions | |||
multiple file uploading - runtime error'13': type mismatch "While Counter <= UBound(FName)" | Excel Discussion (Misc queries) | |||
Where is the toolbar with the "bold type", "font type", options | New Users to Excel | |||
Copying data to another worksheet gives "Type Mismatch" error | Excel Programming |