Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
HTH
Thanks for your quick reply. Below is my code (I should have posted this the first time sorry). I am just not shure where to tell it to paste to. Thank you. NMD Sub FindTheNumbersInFormulas() Dim lngN As Long Dim rngAll As Excel.Range Dim rngCell As Excel.Range Dim strForm As String Dim strPart As String Set rngAll = ActiveSheet.UsedRange.SpecialCells(xlCellTypeFormu las) Application.ScreenUpdating = True Application.CutCopyMode = False For Each rngCell In rngAll strForm = rngCell.Formula For lngN = 1 To Len(strForm) strPart = Mid$(strForm, lngN, 2) If strPart Like "+#" Or strPart Like "-#" Then rngCell.Select Selection.Copy Sheets("consant map").Select ActiveSheet.Paste Sheets("Sheet6").Select Exit For End If Next 'lngN Next 'rngCell Application.ScreenUpdating = True Set rngAll = Nothing Set rngCell = Nothing End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Unknown Range in Macro | Excel Discussion (Misc queries) | |||
Counting an Unknown Range | Excel Discussion (Misc queries) | |||
sorting unknown range | Excel Discussion (Misc queries) | |||
HELP! Unknown range | Excel Worksheet Functions | |||
Average of Unknown Range | Excel Discussion (Misc queries) |