JustinLock
New Member
- Joined
- Sep 22, 2022
- Messages
- 9
- Office Version
- 365
- Platform
- Windows
Hi all,
Having a few issues with Excel embedding the chosen image in excel for other user once file has been shared.
Images are not networked and I would need the document to save the designated images to the allocated cell(s) so that they can be viewed by anyone that downloads the document.
The issue is persistent regardless of protection status, however, I do need to maintain protection and don't want others to tamper with other object on the sheet.
Does anyone have any ideas?
Here's a snip of the code I have deployed so far:
Having a few issues with Excel embedding the chosen image in excel for other user once file has been shared.
Images are not networked and I would need the document to save the designated images to the allocated cell(s) so that they can be viewed by anyone that downloads the document.
The issue is persistent regardless of protection status, however, I do need to maintain protection and don't want others to tamper with other object on the sheet.
Does anyone have any ideas?
Here's a snip of the code I have deployed so far:
VBA Code:
Sub PAAT_SCREENSHOT_PROPOSAL()
Sheet4.Unprotect "DHH2fanclub"
Dim fNameAndPath As Variant
Dim img As Picture
fNameAndPath = Application.GetOpenFilename(Title:="SELECT JAUMET'S AWESOMENESS")
If fNameAndPath = False Then Exit Sub
Set img = ActiveSheet.Pictures.Insert(fNameAndPath)
With img
'Resize Picture to fit in the range....
.Left = Columns(11).Left
.Top = Rows(2).Top
.ShapeRange.LockAspectRatio = msoFalse
.ShapeRange.Height = 330#
.ShapeRange.Width = 816#
.ShapeRange.Rotation = 0#
.Placement = 1
.PrintObject = True
End With
Sheet4.protect "DHH2fanclub"
End Sub