Can someone please help me convert this to FWH.
- Code: Select all Expand view
Sub InsertPicture()
Dim oSheet As Worksheet
Dim cBMP1 As String
Dim cBMP2 As String
Dim rngOutput As Range
Set oSheet = ActiveSheet
cBMP1 = "C:\temp\a.bmp"
Set rngOutput = oSheet.Range("A1", "A1")
With oSheet.Pictures.Insert(cBMP1)
.Left = rngOutput.Left
.Top = rngOutput.Top
End With
cBMP2 = "C:\temp\b.bmp"
Set rngOutput = oSheet.Range("A61", "A61")
With oSheet.Pictures.Insert(cBMP2)
.Left = rngOutput.Left
.Top = rngOutput.Top
End With
End Sub
The area I'm most stuck with is:
- Code: Select all Expand view
With oSheet.Pictures.Insert(cBMP2)
.Left = rngOutput.Left
.Top = rngOutput.Top
End With