Hirdetés

Új hozzászólás Aktív témák

  • zsolti_20

    senior tag

    válasz Delila_1 #44995 üzenetére

    A legjobb lesz ha bedobom ide a telejs kódrészletet ami a másolásért felel.

    Dim xlApp As Application
    Dim xlBook As Workbook
    Dim Sh As Object
    Set xlApp = CreateObject("Excel.Application")
    Set xlBook = xlApp.Workbooks.Open(sFileName)
      xlBook.Sheets(6).Range("H4").Copy
      
      
      xlApp.DisplayAlerts = False
    xlBook.Close
    xlApp.Quit
    Set xlBook = Nothing
    Set xlApp = Nothing
    Set xlBook = ActiveWorkbook
    Set Sh = xlBook.Sheets("Transactions")
    Sh.Activate
    Range("C339").Select
    Sh.Paste
    Range("C339").Select

    Set xlApp = CreateObject("Excel.Application")
    Set xlBook = xlApp.Workbooks.Open(sFileName)
    xlBook.Sheets(6).Range("J5:K20").Copy
    xlApp.DisplayAlerts = False
    xlBook.Close
    xlApp.Quit
    Set xlBook = Nothing
    Set xlApp = Nothing
    Set xlBook = ActiveWorkbook
    Set Sh = xlBook.Sheets("Transactions")
    Sh.Activate
    Range("A342").Select
    Sh.Paste
    Range("A342").Select

Új hozzászólás Aktív témák

Hirdetés