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 JorgeLuisNeves
Posts
#37573
Pessoal que manja de VBA...tenho um codigo parar gerar o log das alterações, mas precisava registrar tb o valor antes da alteração
Segue codigo que estou utilizando


Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Dim wsHist As Worksheet, Rng As Range
Set wsHist = Sheets("LogPlan")
If Sh Is wsHist Then Exit Sub
Set Rng = wsHist.Range("A" & Rows.Count).End(xlUp).Offset(1)
With Rng
.Value = Now
.Offset(, 1) = Sh.Name
.Offset(, 2) = Target.Address
If Target.Cells.Count > 1 Then
.Offset(, 3) = "Valores Alterados"
Else
.Offset(, 3) = Target.Formula
End If
End With
End Sub
Por mprudencio
Posts
#37574
Nao adianta fazer 2, 3 topicos sobre o mesmo assunto.

Assim que alguem souber vai responder.
Por osvaldomp
#37575
JorgeLuisNeves escreveu:Pessoal ...
Você abriu o tópico do link abaixo, abandonou, e agora abriu este com a mesma questão e com título diferente :shock: :?: :?: :?: :?: :?: :?:

viewtopic.php?f=12&t=7999&p=37554#p37554
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