V
Viswanath Tumu
I need to place a button on a User Form when clicked will open a pd
file that is embedded into the main file. I am able to do this in
regular spreadsheet by inserting a ‘package’ object. When the button i
clicked the following is code is called and the pdf opens from Excel.
The code is:
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 with an add-in. The line that i
generating an error is ‘selection.verb’.
Is there a special tool in the control tool box that I can use as
container for a pdf? Greatly appreciate any help
file that is embedded into the main file. I am able to do this in
regular spreadsheet by inserting a ‘package’ object. When the button i
clicked the following is code is called and the pdf opens from Excel.
The code is:
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 with an add-in. The line that i
generating an error is ‘selection.verb’.
Is there a special tool in the control tool box that I can use as
container for a pdf? Greatly appreciate any help