Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Excel 2000. I am a novice to this and intend to create a macro to copy a
fixed formula to a range of cell by a click of a button. Below is the marco created but was prompted with error message when I run it. Error message reads "Run-time error "5" : Invalid procedure cell or argument" on the row starting with "Application.WorksheetFunction.IF....". Please help. Sub Macro2() 'Public strModule As String ' Macro2 Macro Dim IsNumber As Variant Dim Search As Variant Columns("A:A").Select Selection.Insert Shift:=xlToRight Range("A10").Select Application.WorksheetFunction.IF(IsNumber(Search(" TOTAL", C16)), (Right(Left(C16, Len(C16) - 1), 5)), "").Paste Range("A10").Select Selection.Copy ActiveWindow.SmallScroll Down:=200 Range("A10:A200").Select ActiveSheet.Paste End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help: Macro Copy Active Cell to Range Name, loop | Excel Programming | |||
I need formula help or create a macro to copy and paste value only | Excel Discussion (Misc queries) | |||
create formula to compare cell 1 with a range of cell | Excel Programming | |||
How to copy formula from one cell to a range? | Excel Programming | |||
create a macro to copy/paste cell data | Excel Programming |