Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.lang.visual-basic > #19630

Re: VB6 Excel .NumberFormat

From "Sauro" <vicchi@crsscala.it>
Newsgroups it.comp.lang.visual-basic
Subject Re: VB6 Excel .NumberFormat
Date 2019-05-05 19:33 +0200
Organization Aioe.org NNTP Server
Message-ID <qan6pn$1jk6$1@gioia.aioe.org> (permalink)
References <qac8k5$b6n$1@gioia.aioe.org> <1f0bag9greux7$.1jna4oep2qjpn$.dlg@40tude.net>

Show all headers | View raw


.Columns(C).NumberFormat = "@"

Fino ad un certo punto il comando suddetto mi dava il seguente errore.

Errore di run time '1004'
Impossibile impostare la proprietà NumberFormat per la classe range.

Poi dopo che ho letto il tuo post ci ho riprovato e funziona.
Forse nella prima prova avevo sbagliato qualche altro riferimento.

Ciao Freccia e grazie
Sauro



"Freccia (VegetaSSj)" <NIENTESPAMfreccia_vegetassj@hotmail.invalid> ha 
scritto nel messaggio news:1f0bag9greux7$.1jna4oep2qjpn$.dlg@40tude.net...
> Su "it.comp.lang.visual-basic",  ==Sauro=> ha scritto:
>
>> Siccome conosco il tipo di campo che devo mettere
>> nelle singole celle ho deciso di faree così per ogni campo:
>>
>> If TipoCampo = "Text" then
>>     .cells(r, c).NumberFormat = "@"
>> End If
>> .cells(r, c) = Campo(r)
>>
>> Se pensate che ci sia qualcosa di meglio...
>
> Questa cosa la puoi fare per tutta la colonna in un colpo solo. Se
> esporti una tabella di norma ti dovrebbe andare bene.
>
> -- 
> Freccia@Bulldozer63 :D 

Back to it.comp.lang.visual-basic | Previous | NextPrevious in thread | Find similar


Thread

VB6  Excel   .NumberFormat "Sauro" <vicchi@crsscala.it> - 2019-05-01 15:57 +0200
  Re: VB6  Excel   .NumberFormat "Freccia (VegetaSSj)" <NIENTESPAMfreccia_vegetassj@hotmail.invalid> - 2019-05-02 19:48 +0200
    Re: VB6  Excel   .NumberFormat "Sauro" <vicchi@crsscala.it> - 2019-05-05 19:33 +0200

csiph-web