OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Macro p/formatar celulas depois de verificar conteudo

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
abiazon
Newbie
Newbie


Joined: 25 Jul 2007
Posts: 1

PostPosted: Wed Jul 25, 2007 5:46 am    Post subject: Macro p/formatar celulas depois de verificar conteudo Reply with quote

Bom dia

Preciso testar o valor de uma célula e baseado neste
valor formatar varias colunas da celula, a macro q eu
criei retorna 0(zero) quando acha a letra Z na coluna
e somente formata 1 coluna... como resolver isso,
ou se ha outra maneira de fazê-lo...
Sub CaminharSobreCelulas(intColuna, intLinha as Integer)
Dim oMovPasta as Object
Dim oCelula as Object
Dim oPasta as Object
Dim oDocumento as Object

oDocumento = ThisComponent
oPasta = oDocumento.Sheets
oMovPasta = oPasta(0)

oCelula = oMovPasta.GetCellByPosition(intColuna, intLinha)
strmsg = oCelula.value
msgbox strmsg

if oCelula.value = "Z" then
oCelula.charcolor = rgb (250,0,0)
oCelula.charfontname = "Arial"
oCelula.CharHeight = 18.00
oCelula.CharWeight = com.sun.star.awt.FontWeight.BOLD
end if
End Sub


Obrigado pela atenção
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group