Format

BRUNO62

XLDnaute Occasionnel
Bonjour à tous,

J'ai besoin d'aide car je coince sur un format.
La formule apparaît quand je lance la macro et le résultat attendu n'est pas le bon.
Avez vous une idée.
Merci
A+
 

Pièces jointes

  • TOTO.xlsm
    23.4 KB · Affichages: 34
  • TOTO.xlsm
    23.4 KB · Affichages: 32
  • TOTO.xlsm
    23.4 KB · Affichages: 31

DoubleZero

XLDnaute Barbatruc
Re : Format

Bonjour, BRUNO62, le Forum,

Peut-être ainsi :

Code:
Option Explicit
Sub Formule()
Range("b2:b" & Cells(Rows.Count, 1).End(xlUp).Row).FormulaR1C1 = "=IF(RC[-1]=0,"""",FALSE )"
End Sub

A bientôt :)

P. S. : Bonjour + bise, JCGL :D:D
 
Dernière édition:

JCGL

XLDnaute Barbatruc
Re : Format

Bonjour à tous,

Peux-tu essayer :

Code:
Sub Macro1()
    Columns("A:A").NumberFormat = "0.00"
    Range("B2:B" & Range("A65536").End(xlUp).Row).Formula = "=IF(RC[-1]=0,"""" )"
    Cells(1, 1).Select
End Sub

A+ à tous

Edition : Pas vu l'amie G... Heureux de la collision et Bises++
 

Modeste geedee

XLDnaute Barbatruc
Re : Format

Bonsour® à tous

Capture.JPG

Sub Macro1()
Sheets("Feuil1").Select
With Range("B2:B" & Range("A65536").End(xlUp).Row)
.FormulaR1C1 = "=1*(RC[-1]=0)"
.NumberFormat = ";;""FAUX"";"
End With
End Sub
 

Pièces jointes

  • Capture.JPG
    Capture.JPG
    50.1 KB · Affichages: 30
  • Capture.JPG
    Capture.JPG
    50.1 KB · Affichages: 34

Discussions similaires

Réponses
116
Affichages
3 K
Réponses
7
Affichages
350

Membres actuellement en ligne

Statistiques des forums

Discussions
312 361
Messages
2 087 626
Membres
103 610
dernier inscrit
Guelim