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

Tópicos relacionados a códigos VBA, gravação de macros, etc.
Por vilc
Posts
#72071
Boa noite, estou com esse código para gravar dados na planilha, precisava de alguma verificação, para enviar um mensagem dizendo que o id do anydesk e ip já existe .
segue o código abaixo, desde já agradeço a todos.

'grava

Dim ID As Integer 'cria variavel id como inteiro
ID = Me.TxtID.Value ' incorpora o valor da texbox a variavel


ActiveCell = ID ' passa o valor para a celula
ActiveCell.Offset(0, 1) = Me.TxtUsuario
ActiveCell.Offset(0, 2) = Me.TxtIDAnydesk.Value
ActiveCell.Offset(0, 3) = Me.TxtNomeComputador
ActiveCell.Offset(0, 4) = Me.ComboBoSecretariaAnydesk
ActiveCell.Offset(0, 5) = Me.TxtIp


'Avisa que informações foi inserida com sucesso
MsgBox ("Dados Gravados com Sucesso")


'limpa as textbox

TxtUsuario.Text = ""
TxtID.Value = ""
TxtNomeComputador.Value = ""
ComboBoSecretariaAnydesk.Text = ""
TxtIp.Text = ""


ActiveWorkbook.Save
Call UserForm_Initialize
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