save to pdf with two cell reference

PEAKCAB

New Member
Joined
Jul 16, 2018
Messages
49
Hello,

Can someone help me? I have a macro for my purchases and have two references that make up the file name i.e Purchase order number and supplier name; the problem is that they show as one complete word and i wanted them to show with a break i.e 125358 Dave's Supplies

this is what i have at present

PURCHASING\PURCHASE ORDERS\PURCHASE ORDERS PDF\PC00" & Range("F15").Value & Range("A18").Value & ".pdf"

thanks in advance

Rich
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
VBA Code:
PURCHASING\PURCHASE ORDERS\PURCHASE ORDERS PDF\PC00" & Range("F15").Value & " " & Range("A18").Value & ".pdf"
 
Upvote 0
Solution

Forum statistics

Threads
1,214,793
Messages
6,121,619
Members
449,039
Latest member
Mbone Mathonsi

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