Exporting to excel - copying rows

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mansi

    Exporting to excel - copying rows

    I'm trying to automate excel via C# and having trouble converting the
    following code to C#:

    Rows("12:12").S elect
    Selection.Copy
    Selection.Inser t Shift:=xlDown
    Application.Cut CopyMode = False

    This code was recorded by the macro in excel. Essentially, what I did was
    select the entire row 12. Then selected copy. Then I selected "Insert
    copied cells".

    I'm having a hard time with this. Any help will be greatly appreciated.
    Thanks.

    Mansi
Working...