V
Viswanath Tumu
I need to place a button on a User Form when clicked will
open a pdf file that is to be embedded into the main
file. I am able to do this in a regular spreadsheet by
inserting a 'package' object. The following code opens
the pdf from Excel.
Dim zx As Worksheet
Set zx = ThisWorkbook.Sheets("sheet1")
Application.DisplayAlerts = False
zx.Shapes("Object 2").Select
Selection.Verb Verb:=xlPrimary
However, this code is not working in an add-in. The line
that is generating an error is 'selection.verb'.
Is there a special tool in the control tool box that I
can use as a container for a pdf? Greatly appreciate any
help.
open a pdf file that is to be embedded into the main
file. I am able to do this in a regular spreadsheet by
inserting a 'package' object. The following code opens
the pdf from Excel.
Dim zx As Worksheet
Set zx = ThisWorkbook.Sheets("sheet1")
Application.DisplayAlerts = False
zx.Shapes("Object 2").Select
Selection.Verb Verb:=xlPrimary
However, this code is not working in an add-in. The line
that is generating an error is 'selection.verb'.
Is there a special tool in the control tool box that I
can use as a container for a pdf? Greatly appreciate any
help.