Novo

Forum kao aplikacija na telefonu

Dodajte forum na početni ekran i koristite ga kao aplikaciju, sa menijem na dnu ekrana.

  • 7 odgovora
  • 3.324 pregleda

Najnovija ↓

Automatizacije excella 26.06.2010. u 22:24 · pre 199 meseci
izmenjeno 1 put, poslednji put Nevena79 26.06.2010. u 22:39
  1. Nevena7926.06.2010. u 22:39zapis iz teksta poruke
#1
Code:
        Dim oXL As Excel.Application
        Dim oWB As Excel.Workbook
        Dim oSheet As Excel.Worksheet
        Dim oRng As Excel.Range

        ' Start Excel and get Application object.
        oXL = CreateObject("Excel.Application")
        oXL.Visible = True

        ' Get a new workbook.
        oWB = oXL.Workbooks.Add()
        oSheet = oWB.ActiveSheet


Zasto program puca na ovoj liniji?

Code:
 oWB = oXL.Workbooks.Add()


Kaze Old format or invalid type library
Re: Automatizacije excella 27.06.2010. u 11:01 · pre 199 meseci #6
Mislila sam da cu uspeti resiti problem ali ne ide ma sta pokusala. Naime kada izvrsim izmene koje si mi poslao, otvori se Exell sa sheetom.

Code:
Dim oXL As New Excel.Application()
        Dim oWB As Excel.Workbook
        Dim oSheet As Excel.Worksheet
        Dim oRng As Excel.Range



        oXL.Visible = True
        oXL.UserControl = True
        Dim oldCI As System.Globalization.CultureInfo = System.Threading.Thread.CurrentThread.CurrentCulture
        System.Threading.Thread.CurrentThread.CurrentCulture = New System.Globalization.CultureInfo("en-US")
        oXL.Workbooks.Add()
        System.Threading.Thread.CurrentThread.CurrentCulture = oldCI


        oXL.Visible = True
        oSheet = oXL.ActiveSheet

        ' Add table headers going cell by cell.
        oSheet.Cells(1, 1).Value = "First Name"



Ali onda mi ne rade sledece linije:

Code:
oSheet.Cells(1, 1).Value = "First Name"


kao ni

Code:
oSheet.Range("A2", "B6").Value = saNames
Prijavite se da biste odgovorili u ovoj temi.PrijavaRegistracija

Premeštanje teme