![]() |
|
Forum
|
|
|
#1 (permalink) |
|
XLDnaute Barbatruc
Date d'inscription: février 2005
Messages: 3 643
|
bonsoir
j'ouvre ce fil pour faire quelques tests de mise en forme Code:
Sub Test() MsgBox 'Le forum XLD' End Sub Code:
Sub Test() MsgBox 'Le forum XLD' End Sub Code:
Sub Test() MsgBox 'Le forum XLD' End Sub Code:
Sub Test() MsgBox 'Le forum XLD' End Sub bonne soirée MichelXld |
|
|
|
| ANNONCES | |||
|
|
|
|
#3 (permalink) |
|
XLDnaute Barbatruc
Date d'inscription: février 2005
Messages: 3 643
|
...ppfff...raté...
....cher David , si tu passes par ici ... y a t'il un moyen d'afficher la zone de 'Code' en unicolor et écrit un peu plus grand ? bonne soirée MichelXld |
|
|
|
|
|
#4 (permalink) |
|
XLDnaute Barbatruc
Date d'inscription: février 2005
Messages: 3 643
|
rebonsoir
un dernier test avant d'aller au dodo ... Code:
Sub Test() MsgBox 'Le forum XLD' End Sub Code:
Sub Test() MsgBox 'Le forum XLD' End Sub Code:
Sub Test() MsgBox 'Le forum XLD' End Sub |
|
|
|
|
|
#5 (permalink) |
|
XLDnaute Barbatruc
Date d'inscription: février 2005
Messages: 3 643
|
bonsoir
un petit test suite au message de David Code:
Sub listeImprimantes_et_Statut()
'testé avec Excel2002 et WinXP
Dim objWMIService As Object, colInstalledPrinters As Object, objPrinter As Object
Dim nomPC As String, Resultat As String
nomPC = '.'
Set objWMIService = GetObject('winmgmts:' & _
'{impersonationLevel=impersonate}!\\\\' & nomPC & '\\root\\cimv2')
Set colInstalledPrinters = objWMIService.execQuery('Select * from Win32_Printer')
For Each objPrinter In colInstalledPrinters
Resultat = Resultat & objPrinter.Name & ' imprimante active : ' & objPrinter.Default & vbLf
Next
MsgBox Resultat
End Sub
Code:
Sub creerUndossier() mkDir 'c:\\Mes Documents\\Excel' End Sub bonne soiree MichelXld |
|
|
|
|
|
#6 (permalink) |
|
XLDnaute Barbatruc
Date d'inscription: février 2005
Messages: 3 643
|
merci David cela fonctionne très bien
un nouvel essai sans la balise Code Sub listeImprimantes_et_Statut() 'testé avec Excel2002 et WinXP Dim objWMIService As Object, colInstalledPrinters As Object, objPrinter As Object Dim nomPC As String, Resultat As String nomPC = '.' Set objWMIService = GetObject('winmgmts:' & _ '{impersonationLevel=impersonate}!\\\\' & nomPC & '\\root\\cimv2') Set colInstalledPrinters = objWMIService.execQuery('Select * from Win32_Printer') For Each objPrinter In colInstalledPrinters Resultat = Resultat & objPrinter.Name & ' imprimante active : ' & objPrinter.Default & vbLf Next MsgBox Resultat End Sub MichelXld |
|
|
|
|
|
#8 (permalink) |
|
XLDnaute Barbatruc
Date d'inscription: février 2005
Localisation: Saint Philbert de Grand Lieu
Version Excel : Excel XP (PC)
Messages: 4 595
|
Bonjour à tous,
Jolie ta signature Hervé ! C'est vrai que la taille de la police pour le code est un peu petite. Surtout sur un 17' en 1280*1024 ! B) Je fais un teste pour voir (Arf !) Code:
Sub listeImprimantes_et_Statut()
'testé avec Excel2002 et WinXP
Dim objWMIService As Object, colInstalledPrinters As Object, objPrinter As Object
Dim nomPC As String, Resultat As String
nomPC = '.'
Set objWMIService = GetObject('winmgmts:' & _
'{impersonationLevel=impersonate}!' & nomPC & 'rootcimv2'Â'Â')
Set colInstalledPrinters = objWMIService.execQuery('Select * from Win32_Printer'Â'Â')
For Each objPrinter In colInstalledPrinters
Resultat = Resultat & objPrinter.Name & ' imprimante active : ' & objPrinter.Default & vbLf
Next
MsgBox Resultat
End Sub
Bin non. Je crois que l'aperçu n'est pas très WYSIWYG. David ????? Message édité par: jmps, à: 26/02/2005 12:48
__________________
![]() A+ ![]() |
|
|
|
|
|
#9 (permalink) |
|
XLDnaute Barbatruc
Date d'inscription: février 2005
Localisation: Saint Philbert de Grand Lieu
Version Excel : Excel XP (PC)
Messages: 4 595
|
En fait, la balise < font > n'est pas interprétée.
Je refais un test en la mettant à l'extérieur de code. Code:
Sub listeImprimantes_et_Statut()
'testé avec Excel2002 et WinXP
Dim objWMIService As Object, colInstalledPrinters As Object, objPrinter As Object
Dim nomPC As String, Resultat As String
nomPC = '.'
Set objWMIService = GetObject('winmgmts:' & _
'{impersonationLevel=impersonate}!\\' & nomPC & 'rootcimv2'Â'Â')
Set colInstalledPrinters = objWMIService.execQuery('Select * from Win32_Printer'Â'Â')
For Each objPrinter In colInstalledPrinters
Resultat = Resultat & objPrinter.Name & ' imprimante active : ' & objPrinter.Default & vbLf
Next
MsgBox Resultat
End Sub
Raté aussi. Y'a plus que David qui peut nous sauver de la conjonctivite.... Message édité par: jmps, à: 26/02/2005 12:52
__________________
![]() A+ ![]() |
|
|
|
|
|
#10 (permalink) |
|
XLDnaute Barbatruc
Date d'inscription: février 2005
Messages: 3 643
|
Bonsoir Hervé , Bonsoir José
Hervé , elle est tres sympa ta signature j'espere que David pourra faire quelque chose pour augmenter la taille des caracteres ( et peut etre la police ?) en attendant je vous souhaite une bonne soiree MichelXld |
|
|
|
|
|
#11 (permalink) |
|
XLDnaute Occasionel
Date d'inscription: février 2005
Messages: 242
|
Coucou,
Encore des Tests... A+ ![]() http://www.eabressane.com Message édité par: galopin01, à: 28/02/2005 12:22 |
|
|
|
|
|
#12 (permalink) | |
|
XLDnaute Occasionel
Date d'inscription: février 2005
Version Excel : Excel 2000 (PC)
Messages: 254
|
bonjour,
voici ma dernière contribution à cette mise en forme (voir fil http://www.excel-downloads.com/forum...vba-gt-xld.htm. Cette version utilise la balise quote. J'avais fait des essais avec la balise code et à l'Aperçu c'était nickel mais après :angry: Citation:
|
|
|
|
|
|
| ANNONCES | ||
![]() |
| Outils de la discussion | |
|
|