Angela69
Gebruiker
- Lid geworden
- 9 mrt 2017
- Berichten
- 434
- Besturingssysteem
- Windows
- Office versie
- 365
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.
Privacywetgeving
Het is bij Helpmij.nl niet toegestaan om persoonsgegevens in een voorbeeld te plaatsen. Alle voorbeelden die persoonsgegevens bevatten zullen zonder opgaaf van reden verwijderd worden. In de vraag zal specifiek vermeld moeten worden dat het om fictieve namen gaat.
Sub InsertComment()
Dim imagePath As String
Dim rng As Range
On Error Resume Next
Set rng = Application.InputBox( _
Title:="Plaats foto in commentaar", _
Prompt:="Selecteer een cel", _
Type:=8)
On Error GoTo 0
If rng Is Nothing Then Exit Sub
With Application.FileDialog(msoFileDialogFilePicker)
.Title = "Selecteer een foto"
.Filters.Add "Foto", "*.jpg; *.jpeg; *.png"
.AllowMultiSelect = False
If .Show = -1 Then
imagePath = .SelectedItems(1)
With rng
.ClearComments
With .AddComment.Shape
.Height = .Height * 3.5
.Width = .Width + 30
.Fill.UserPicture imagePath
End With
MsgBox "Foto staat in de cel als opmerking"
End With
Else
MsgBox "Geen foto geselecteerd.", vbInformation
End If
End With
End Sub
With .AddComment.Shape
.Fill.UserPicture imagePath
.ScaleHeight 1.5, msoFalse, msoScaleFromTopLeft
.ScaleWidth 1.5, msoFalse, msoScaleFromTopLeft
.Visible = msoFalse
End With
Ik ben benieuwd of excel dit aan kan.200 foto's importeren
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.