Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
Hou dat goed in het achterhoofd, want je kunt het foto bestand dus niet gebruiken als alternatief fotoarchiefDe foto's worden overigens verkleind opgeslagen, dus de oorspronkelijke grootte is niet van belang.
Sub Zoek_Foto()
Dim sShape As Shape
With Application.FileDialog(1)
.Title = "Selecteer foto"
.Filters.Add "Foto", "*.jpg", 1
.AllowMultiSelect = False
.Show
If .SelectedItems.Count < 1 Then
MsgBox "Geen foto geselecteerd.", vbExclamation
Else
Set sShape = ActiveSheet.Shapes.AddPicture(.SelectedItems(1), _
msoFalse, msoTrue, Columns(6).Left + 5, ActiveCell.Top, -1, -1)
With sShape
.LockAspectRatio = msoTrue
.Width = Columns(6).Width - 5
End With
ActiveSheet.Hyperlinks.Add Anchor:=sShape, Address:=.SelectedItems(1)
ActiveCell.EntireRow.RowHeight = sShape.Height
End If
End With
End Sub
.Width = Columns(6).Width - 5
Sub Zoek_Foto()
Dim sShape As Shape
With Application.FileDialog(1)
.Title = "Selecteer foto"
.Filters.Add "Foto", "*.jpg", 1
.AllowMultiSelect = False
.Show
If .SelectedItems.Count < 1 Then
MsgBox "Geen foto geselecteerd.", vbExclamation
Else
Set sShape = ActiveSheet.Shapes.AddPicture(.SelectedItems(1), _
msoFalse, msoTrue, Columns(6).Left + 5, ActiveCell.Top, -1, -1)
With sShape
.LockAspectRatio = msoTrue
.Width = Columns(6).Width - 5
If .Height > 400 Then .Height = 250
End With
ActiveSheet.Hyperlinks.Add Anchor:=sShape, Address:=.SelectedItems(1)
ActiveCell.EntireRow.RowHeight = sShape.Height
End If
End With
End Sub
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.