|
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row > 0 And Target.Column = 1 Then
path_str = InputBox("请输入图片服务器路径:" & Chr(13) & Chr(10) & "例如:\\192.168.0.9\image\", "picture_path")
Me.Shapes.AddPicture Path + ActiveCell.Offset(-1, 0).Value + ".jpg", True, True, ActiveCell.Offset(-1, 1).MergeArea.Left + 2, ActiveCell.Offset(-1, 1).MergeArea.Top + 2, ActiveCell.Offset(-1, 1).MergeArea.Width - 4, ActiveCell.Offset(-1, 1).MergeArea.Height - 4
End If
End Sub
请问老师:路径代码改成path_str = InputBox("请输入图片服务器路径:" & Chr(13) & Chr(10) & "例如:\\192.168.0.9\image\", "picture_path")为什么就找到图片了,应该怎么改! |
|