importing a PDF

freefall3

New Member
Joined
Aug 22, 2011
Messages
6
I am currently making an enquiry process with Excel, for the company sales team. The sales team will open excel and fill in the form which pops up. The excel file then gets logged and e-mailed to me, to process.

the problem i am having is that with almost all enquiries, the customer sends in a PDF (or multiple PDF's) or JPEG files which i need the sales team to import/attach to the excel file. Not all of the sales team know how to import a pdf's (insert=>object=>pdf=>browse), or a JPEG 's(insert=>picture=>browse).

i want to have a button on the form (VBA) which when pressed, opens the browser window so they can search themselves. i'm not bothered if i have to have 2 buttons, 1 for PDF's & 1 for JPEG's

any help would be much appreciated
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Try playing around with this. Something I found in another thread and I used the Macro recorder to pick up the "ELSE" part.
It's a start and by no means bullet proof.
Code:
Sub TestIt()
'NewFN = Application.GetOpenFilename(FileFilter:="Excel Files (*.xls), *.xls", Title:="Please select a file")
NewFN = Application.GetOpenFilename(FileFilter:="", Title:="Please select a file")
If NewFN = False Then
' They pressed Cancel
MsgBox "Stopping because you did not select a file"
Exit Sub
Else
    ActiveSheet.OLEObjects.Add(Filename:=NewFN, Link:=False, DisplayAsIcon:=True, IconFileName:="", IconIndex:=0).Select
End If
End Sub
Rob
 
Upvote 0

Forum statistics

Threads
1,224,575
Messages
6,179,637
Members
452,934
Latest member
Jdsonne31

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top