Moderatori: Anthony47, Flash30005
Dim OldA3 'Variabile a livello di modulo
Sub DDEMonitor()
ActiveWorkbook.SetLinkOnData "RSLINX|Magazzino_Autom!'MISSIONE_COMPLETATA,L1,C1'", "ddeHead"
End Sub
Sub ddeHead()
With ThisWorkbook.Sheets("Foglio1").Range("B3")
If .Value = OldA3 Then
Exit Sub
Else
OldA3 = .Value
If .Value = 1 Then
MsgBox ("Salto a 1")
'Call Update
End If
End If
End With
End Sub
Sub LinkList()
Dim Links
Links = ActiveWorkbook.LinkSources(xlOLELinks)
If Not IsEmpty(Links) Then
For I = 1 To UBound(Links)
Debug.Print Links(I)
Next I
Else
Debug.Print "Nessun link??!!"
End If
End Sub
Sub ddeHead()
With ThisWorkbook.Sheets("Foglio1").Range("B3")
If .Value = OldA3 Then
Exit Sub
Else
OldA3 = .Value
If .Value = 1 Then
MsgBox ("Salto a 1")
'call update
End If
End If
End With
End Sub
With Application.ThisWorkbook.Sheets("Foglio1").Range("B3")
Sub DDEMonitor()
oldA3 = 0 '<<< QUESTA
ActiveWorkbook.SetLinkOnData "RSLINX|Magazzino_Autom!'MISSIONE_COMPLETATA,L1,C1'", "ddeHead"
End Sub
Sub Update()
Debug.Print ThisWorkbook.Sheets("Foglio1").Range("B3").Value '<<< QUESTA
Torna a Applicazioni Office Windows
Macro modifica date scelta periodo Autore: Ricky0185 |
Forum: Applicazioni Office Windows Risposte: 11 |
Supporto per sviluppo macro VBA Ordinare per data Autore: Carletto Ribolla |
Forum: Applicazioni Office Windows Risposte: 3 |
Macro per aprire file salvato su sharepoint Onedrive Autore: marcopont |
Forum: Applicazioni Office Windows Risposte: 2 |
Come interrompere macro sndPlaySound Autore: systemcrack |
Forum: Applicazioni Office Windows Risposte: 2 |
Visitano il forum: Nessuno e 38 ospiti