Pagina precedente | 1 | Pagina successiva
Vota | Stampa | Notifica email    
Autore

Creare un immagine Active X che varia a seconda delle cella Selezionata.

Ultimo Aggiornamento: 08/03/2017 15:48
Post: 5
Registrato il: 08/03/2017
Città: MILANO
Età: 32
Utente Junior
2016
OFFLINE
08/03/2017 15:38

Funziona :P !!!

Estrapolando da altre letture avevo risolto così:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim ur As Long
Dim myPath As String
myPath = "c:\Foto\"
ur = Cells(Rows.Count, 1).End(xlUp).Row
If Not Intersect(Target, Range("a1:a" & ur)) Is Nothing Then
If Dir(myPath & Target.Value & ".jpg") <> "" Then ' se la foto esiste
Worksheets("Foglio1").Image1.Picture = LoadPicture(myPath & Target.Value & ".jpg")
Else
Worksheets("Foglio1").Image1.Picture = LoadPicture(myPath & "workinprogress.jpg")
End If
End If

End Sub



Alla fine è la stessa soluzione :P !!!
[SM=x423047] [SM=x423047] [SM=x423047]
Grazie per il supporto...assolutamente fondamentale!!.
Vota:
Amministra Discussione: | Chiudi | Sposta | Cancella | Modifica | Notifica email Pagina precedente | 1 | Pagina successiva
Nuova Discussione
 | 
Rispondi
Cerca nel forum
Tag discussione
Discussioni Simili   [vedi tutte]
Feed | Forum | Bacheca | Album | Utenti | Cerca | Login | Registrati | Amministra
Tutti gli orari sono GMT+01:00. Adesso sono le 23:56. Versione: Stampabile | Mobile | Regolamento | Privacy
FreeForumZone [v.6.1] - Copyright © 2000-2024 FFZ srl - www.freeforumzone.com