Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1244 connectés 

  FORUM HardWare.fr
  Programmation
  VB/VBA/VBS

  [ Info VBA Excel ] Elargir Zone de Nom

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[ Info VBA Excel ] Elargir Zone de Nom

n°1388587
kiki29
Posté le 16-06-2006 à 01:08:20  profilanswer
 

Qqch que j'ai longtemps cherché et enfin trouvé sur un site US
Comment élargir la Zone de Nom.
 


Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
    (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
 
Public Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" _
    (ByVal hWnd1 As Long, ByVal hWnd2 As Long, _
    ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
 
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" _
    (ByVal hwnd As Long, ByVal wMsg As Long, _
    ByVal wParam As Long, lParam As Any) As Long
 
Private Sub ElargirZoneNom()
Dim Res As Long
Const CB_SETDROPPEDWIDTH = &H160
Const cWidth = 200 '<<<<<<<
    Res = SendMessage(FindWindowEx(FindWindowEx(FindWindow("XLMAIN", Application.Caption) _
                , 0, "EXCEL;", vbNullString), 0, "combobox", vbNullString), CB_SETDROPPEDWIDTH, cWidth, 0)
End Sub
 
Sub Auto_Open()
    ElargirZoneNom
End Sub
 


 
Sous 2007 cette zone est modifiable manuellement


Message édité par kiki29 le 24-06-2007 à 19:11:33
mood
Publicité
Posté le 16-06-2006 à 01:08:20  profilanswer
 

n°1388600
galopin01
Posté le 16-06-2006 à 07:48:36  profilanswer
 

Euh... ça sert à quoi ?

n°1388679
kiki29
Posté le 16-06-2006 à 10:07:27  profilanswer
 

A rien bien sur

n°1388686
galopin01
Posté le 16-06-2006 à 10:15:23  profilanswer
 

http://perso.orange.fr/galopin01/images/mdr2.jpg


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  VB/VBA/VBS

  [ Info VBA Excel ] Elargir Zone de Nom

 

Sujets relatifs
Protection et signature d'un fichier excel[Xml/Excel] Ouverture fichier xml avec excel2000
excel - macro a executer sur chaque ligne d'une feuilledifficultés à manipuler les dates/heures pr Macro Excel
excelHelp ! Macro excel pour importer données de differents onglets
Recuperer données SQL en fichier Excel[Excel-VBA] Conversion de fichiers excel -> BD
Acceder en VBS via ligne de cmd à un fichier excel[sql/Excel] requête sql vers Excel : problème de saut de ligne ...
Plus de sujets relatifs à : [ Info VBA Excel ] Elargir Zone de Nom


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR