Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Type mismatch: .Cells(i).Value = "=rc[-1]" / vl

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
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
"Type mismatch" when I try to fill an Array variable with "+" [email protected] Excel Discussion (Misc queries) 1 April 17th 07 01:28 PM
how do I type "itis" without Excel putting a space "it is"? Max Excel Worksheet Functions 4 March 18th 07 10:22 PM
multiple file uploading - runtime error'13': type mismatch "While Counter <= UBound(FName)" Sinner Excel Discussion (Misc queries) 3 March 1st 07 09:44 AM
Where is the toolbar with the "bold type", "font type", options fwccbcc New Users to Excel 2 May 3rd 06 09:11 PM
Copying data to another worksheet gives "Type Mismatch" error TB[_3_] Excel Programming 6 July 28th 03 12:44 PM


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