Este fórum está sendo desativado

Depois de 9 anos, este fórum será desativado. Mas calma.... estamos migrando para uma comunidade no DISCORD. Junte-se a nós.

ENTRAR PARA DISCORD

Dúvidas sobre cálculos, funções simples e aninhadas, fórmulas matriciais, etc.
  • Avatar do usuário
Avatar do usuário
Por GENECI
Avatar
#54375
Bom dia.

Por favor.
Solicito a sua ajuda conforme o arquivo anexo.

Grato - GENECI.
Você não está autorizado a ver ou baixar esse anexo.
Por babdallas
#54397
Tente isso:
Código: Selecionar todos
Sub MeuRelogio()
    If Inicio = True Then
        With wshMsg
            .Range("A1").Value = VBA.Time()
            Application.OnTime VBA.Now() + VBA.TimeValue("00:00:01"), "MeuRelogio"
            
            If VBA.CStr(VBA.Format(.Range("A1").Value, "hh:mm:ss")) = VBA.CStr(VBA.TimeValue("07:00:00")) Then
                If .Range("C1").Value2 = "DDDD" Then
                    .Range("C1").Value2 = "AAAA"
                Else
                    .Range("C1").Value2 = "CCCC"
                End If
            ElseIf VBA.CStr(VBA.Format(.Range("A1").Value, "hh:mm:ss")) = VBA.CStr(VBA.TimeValue("19:00:01")) Then
                If .Range("C1").Value2 = "AAAA" Then
                    .Range("C1").Value2 = "BBBB"
                Else
                    .Range("C1").Value2 = "DDDD"
                End If
            End If
        End With
  End If
End Sub

Sub IniciarRelogio()
    Inicio = True
    Call MeuRelogio
End Sub

Sub PararRelogio()
    Inicio = False
End Sub
Avatar do usuário
Por GENECI
Avatar
#54447
Bom dia. babdallas

Fiz algo de errado e não consegui o objetivo, tentei inúmeras vezes sem êxito.
Por favor, pode inserir a macro no arquivo e disponibilizar.
Certo da compreensão.

Agradeço - GENECI.
Por babdallas
#54449
Segue. Espero que seja isso.
Você não está autorizado a ver ou baixar esse anexo.
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]

Estamos migrando para uma comunidade no Discord