本文介绍了Visual Basic对C#的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要帮助,将代码从VBA传递到C#

I need help passing the code from VBA to C#

Sub Macro1()

    SetTaskField Field:="Name", Value:="nueva tarea"
    SelectTaskField Row:=1, Column:="Name"
    InsertTask
    SetTaskField Field:="Name", Value:="nueva tarea"
    SelectTaskField Row:=1, Column:="Name"
    SelectTaskField Row:=-1, Column:="Start"
    SetTaskField Field:="Start", Value:="Fri 6/22/12"
    TableEditEx Name:="&Entry", TaskTable:=True, NewName:="", NewFieldName:="Actual Work", Width:=20, ShowInMenu:=True, LockFirstColumn:=True, DateFormat:=255, RowHeight:=1, ColumnPosition:=8
    TableApply Name:="&Entry"
    SetTaskField Field:="Actual Work", Value:="8 hrs"
    SelectTaskField Row:=1, Column:="Actual Work"
    SelectTaskField Row:=22, Column:="Predecessors"
    SelectTaskField Row:=0, Column:="Actual Work"
    SetTaskField Field:="Actual Work", Value:="3 hrs"
    SelectTaskField Row:=1, Column:="Actual Work"
End Sub

推荐答案


这篇关于Visual Basic对C#的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 22:10