Abhishek1988
New Member
- Joined
- Oct 22, 2018
- Messages
- 27
Hi Everyone,
I have below code to insert documents into excel
Sub Insert_OLE_Object()
Worksheets("Sheet1").OLEObjects.Add Filename:="c:\temp\sample.pdf", Link:=False, DisplayAsIcon:=False, Left:=40, Top:=40, Width:=150, Height:=10
End Sub
I want to know how can i can run above code by clicking on button. Where i should put dis code in VBA?
Please help me in this
I have below code to insert documents into excel
Sub Insert_OLE_Object()
Worksheets("Sheet1").OLEObjects.Add Filename:="c:\temp\sample.pdf", Link:=False, DisplayAsIcon:=False, Left:=40, Top:=40, Width:=150, Height:=10
End Sub
I want to know how can i can run above code by clicking on button. Where i should put dis code in VBA?
Please help me in this