Visualizzazione dei risultati da 1 a 3 su 3

Discussione: VB6 Excel

  1. #1
    Utente di HTML.it
    Registrato dal
    Jan 2005
    Messaggi
    120

    VB6 Excel

    Salve a tutti!
    Quando creo un foglio Excel mi dà di default 3 Sheets...come faccio ad aumentarne il valore fino a quanto ne ho bisogno?! sposto lo script

    Dim a As New Excel.Application
    Dim b As Excel.Workbook
    Dim c As Excel.Worksheet

    Private Sub Form_Activate()
    a.Visible = True
    Set b = Excel.Workbooks.Add
    Set c = Excel.Worksheets.Add

    Set c = Excel.Worksheets.Item(1)
    c.Name = "Anagrafica"
    c.Visible = xlSheetVisible
    c.Activate
    Set c = Excel.Worksheets.Item(2)
    c.Name = "Raccolta Dati"
    Set c = Excel.Worksheets.Item(3)
    c.Name = "aaa"
    Set c = Excel.Worksheets.Item(4)
    c.Name = "aaa1"

    'foglioExcel.Visible = xlSheetHidden
    End Sub

    Quando metto Set c = Excel.Worksheets.Item(5) mi dà "indice non compreso nell'intervallo"
    Come faccio!?


    Grazie 1000

  2. #2
    Utente di HTML.it
    Registrato dal
    Jan 2005
    Messaggi
    120

    VB6 Excel

    Ho risolto...grazie lo stesso

  3. #3
    Moderatore di Programmazione L'avatar di alka
    Registrato dal
    Oct 2001
    residenza
    Reggio Emilia
    Messaggi
    24,472

    Re: VB6 Excel

    Originariamente inviato da binbum
    Ho risolto...grazie lo stesso
    "Faccelaaa, faccelaaa, faccelaaaa vedere....
    ....la soluzione, faccela vedereeeee"



    Ciao!
    MARCO BREVEGLIERI
    Software and Web Developer, Teacher and Consultant

    Home | Blog | Delphi Podcast | Twitch | Altro...

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.