P
ProjmanZA
Hi Guys ,
I need help with a Macro i have created. The Macro Crashes if i run it
as one Macro, but if i split it up it works just fine. The problem is
i have to have only 1 Macro with a button on the toolbar to execute
the events. In short i have about 2 editcopy jobs and 2 edit paste
jobs. On the second EditPaste it crashes. Herewith the vba Code
Sub CopyPasteMacro()
' Macro CopyPasteMacro
' Macro Recorded Fri 08/10/17 by MOSS\Administrator.
SelectResourceColumn Column:="Cost Rate Table"
EditCopy
SelectResourceColumn Column:="Text1"
EditPaste
SelectResourceField Row:=1, Column:="Cost Rate Table"
SetTaskField Field:="Cost Rate Table", Value:="C"
SelectResourceField Row:=1, Column:="Cost Rate Table"
SelectResourceField Row:=-1, Column:="Cost Rate Table"
SelectResourceField Row:=0, Column:="Cost Rate Table", Height:=18
FillDown
SelectResourceColumn Column:="Cost"
EditCopy
SelectResourceColumn Column:="Cost1"
EditPaste
SelectResourceColumn Column:="Text1"
EditCopy
SelectResourceColumn Column:="Cost Rate Table"
EditPaste
SelectResourceField Row:=0, Column:="Text1"
SelectResourceField Row:=0, Column:="Text1", Height:=19,
Extend:=True
EditClear Contents:=True
End Sub
I need help with a Macro i have created. The Macro Crashes if i run it
as one Macro, but if i split it up it works just fine. The problem is
i have to have only 1 Macro with a button on the toolbar to execute
the events. In short i have about 2 editcopy jobs and 2 edit paste
jobs. On the second EditPaste it crashes. Herewith the vba Code
Sub CopyPasteMacro()
' Macro CopyPasteMacro
' Macro Recorded Fri 08/10/17 by MOSS\Administrator.
SelectResourceColumn Column:="Cost Rate Table"
EditCopy
SelectResourceColumn Column:="Text1"
EditPaste
SelectResourceField Row:=1, Column:="Cost Rate Table"
SetTaskField Field:="Cost Rate Table", Value:="C"
SelectResourceField Row:=1, Column:="Cost Rate Table"
SelectResourceField Row:=-1, Column:="Cost Rate Table"
SelectResourceField Row:=0, Column:="Cost Rate Table", Height:=18
FillDown
SelectResourceColumn Column:="Cost"
EditCopy
SelectResourceColumn Column:="Cost1"
EditPaste
SelectResourceColumn Column:="Text1"
EditCopy
SelectResourceColumn Column:="Cost Rate Table"
EditPaste
SelectResourceField Row:=0, Column:="Text1"
SelectResourceField Row:=0, Column:="Text1", Height:=19,
Extend:=True
EditClear Contents:=True
End Sub