mario rossi
unread,Mar 2, 2023, 4:10:05 AM3/2/23You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
buongiorno a tutti, con il codice qui sotto apro un file di excel e compilo alcune celle e fin qui tutto ok, non trovo come settare un bordo ad un range di celle
esempio: impostare un bordo al range (A2:C7) qualcuno sa come fare?
Grazie.
Dim oExcel As Object
Dim oBook As Object
Dim oSheet As Object
'Start a new workbook in Excel
Set oExcel = CreateObject("Excel.Application")
Set oBook = oExcel.Workbooks.Open(file1)
'Add data to cells of the first worksheet in the new workbook
Set oSheet = oBook.Worksheets(1)
oSheet.Range("a2").Value = "pippo srl"
oSheet.Range("a3").Value = "via roma 32 12345 Roma"
oSheet.Range("a4").Value = "32455555555"
'Save the Workbook and Quit Excel
oBook.Save
oExcel.Quit
Set oSheet = Nothing
Set oExcel = Nothing
Set oBook = Nothing