Private Sub cmdComprimi_Click()
Dim comando As String
Dim nomedir As String
Dim strAnno As String
Dim strMese As String
Dim S As Object
'imposta il nome del file.Presuponendo che il periodo scelto sia un mese e quindi prende in considerazione il mede della data di inizio estrazione
'se inevecej è un trimestre mette il primo carattere del cmbmese
strAnno = Year(Me.TxtInizio)
strMese = Format(Month(Me.TxtInizio), "00")
If Me.CmbTipoPeriodo = "trim" Then
strMese = "trim" & Left(Me.CmbMese, 1)
End If
nomedir = App.Path & "\report" & strAnno & "\" & strAnno & "_" & strMese & "\"
comando = "c:\Programmi\WinRAR\rar.exe a " & """" & nomedir & strAnno & "_" & strMese & ".rar"" -p" & Format(Me.TxtInizio, "mmmmYYYY") & " -ep " & Chr(34) & nomedir & "*" & Chr(34)
Shell comando
Set S = CreateObject("Shell.Application")
S.ShellExecute (nomedir)
Open nomedir & "pw.txt" For Output As #1
Print #1, Format(Me.TxtInizio, "mmmmYYYY")
Close (1)
End Sub
giovedì 7 maggio 2015
giovedì 16 aprile 2015
vb6 aprire un file excel esistente (nuovo o esistente)
Option Explicit
'variabili per excel
Dim oExcel As Object
Dim oBook As Object
Dim oSheet As Object
Dim nomefile As String
Private Sub cmdApriFileExcel_Click()
'inizializza nomefile
nomefile = App.Path & "xxxxx_.xls"
'Start a new workbook in Excel
Set oExcel = CreateObject("Excel.Application")
Set oBook = oExcel.Workbooks.Open(nomefile)
End Sub
Private Sub cmdCreaFileExcel_Click()
'Start a new workbook in Excel
Set oExcel = CreateObject("Excel.Application")
Set oBook = oExcel.Workbooks.Add
End Sub
connessione access 2000
Tra i riferimenti inserire microsoft DAO 3.6
Option Explicit
dim dbArchivio As Database
dim rsTabellA As DAO.Recordset
Dim nomedatabase As String
Dim nometabella As String
Private Sub Form_Load()
nomedatabase = "aaaaaaaa.mdb"
nometabella = "bbbbbb"
Set dbArchivio = DBEngine(0).OpenDatabase(nomedatabase)
Set rsTabellA = dbArchivio.OpenRecordset(nometabella)
End Sub
Option Explicit
dim dbArchivio As Database
dim rsTabellA As DAO.Recordset
Dim nomedatabase As String
Dim nometabella As String
Private Sub Form_Load()
nomedatabase = "aaaaaaaa.mdb"
nometabella = "bbbbbb"
Set dbArchivio = DBEngine(0).OpenDatabase(nomedatabase)
Set rsTabellA = dbArchivio.OpenRecordset(nometabella)
End Sub
martedì 31 marzo 2015
Cambiare larghezza colonna su db2 as400
ALTER TABLE libreria/file ALTER COLUMN colonna SET DATA
TYPE CHARACTER ( 50) CCSID 280 NOT NULL
TYPE CHARACTER ( 50) CCSID 280 NOT NULL
giovedì 8 gennaio 2015
exportGridToExcel
Public Sub exportGridToExcel(nomegriglia As MSFlexGrid)
Dim oExcel As Object
Dim oBook As Object
Dim i As Integer
Dim j As Integer
'Start a new workbook in Excel
Set oExcel = CreateObject("Excel.Application")
Set oBook = oExcel.Workbooks.Add
oExcel.Visible = True
'riporta la griglia in excel
For i = 0 To nomegriglia.Rows - 1
For j = 0 To nomegriglia.Cols - 1
oExcel.cells(i + 1, j + 1).Value = nomegriglia.TextMatrix(i, j)
Next
Next
MsgBox "salvataggio su excel terminato"
End Sub
giovedì 1 gennaio 2015
font google
https://developers.google.com/fonts/docs/getting_started#Quick_Start
esempi font google
http://www.google.com/fonts
giovedì 20 novembre 2014
IMPOSTARE RUBRICA LDAP
- file
- informazioni
- impostazioni account
- impostazioni account
- rubriche
- nuovo
- nuova finestra avanti
- server
- utente
- password
- avanti
Iscriviti a:
Post (Atom)



