Moderatori: Anthony47, Flash30005
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$N$500" Then
Application.EnableEvents = False
Me.Range("B504").End(xlDown).Offset(1, 0).Value = Target.Value
Range("b504").End(xlDown).Offset(0, -1) = Date
Range("b504").End(xlDown).Offset(0, 11).Select
Range("N500").Value = "Dom"
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=$O$500:$R$500"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = "Scegli"
.ErrorTitle = "Noooo!"
.InputMessage = "Valore da elenco"
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
Application.EnableEvents = True
End If
End Sub
Range("b504").End(xlDown).Offset(0, 11).Select
If application.worksheetfunction.countif(activecell.entirecolumn,activecell.value)>xx then
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$N$500" Then
Application.EnableEvents = False
Me.Range("B504").End(xlDown).Offset(1, 0).Value = Target.Value
Range("b504").End(xlDown).Offset(0, -1) = Date
Range("b504").End(xlDown).Offset(0, 11).Select
Range("N500").Value = "Dom"
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=$O$500:$R$500"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = "Scegli"
.ErrorTitle = "Noooo!"
.InputMessage = "Valore da elenco"
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
SendKeys "%{down}"
Application.EnableEvents = True
End If
End Sub
Wend
Next Cell
' ActiveCell = Count
Done:
ActiveCell.Value = Range("N500").Offset(0, Count).Value '<<< QUESTA
End Sub
Torna a Applicazioni Office Windows
Macro modifica date scelta periodo Autore: Ricky0185 |
Forum: Applicazioni Office Windows Risposte: 11 |
Barra Applicazioni tasto destro non attivo e ALTRO Autore: ricky53 |
Forum: Sistemi Operativi Windows Risposte: 6 |
Macro copia dati colonne non contigue su un altro file excel Autore: systemcrack |
Forum: Applicazioni Office Windows Risposte: 5 |
Macro che scatta quando cambia dato in un altro file Autore: systemcrack |
Forum: Applicazioni Office Windows Risposte: 16 |
Visitano il forum: Nessuno e 10 ospiti