VBA Macro to Fill String & Save PDF

mmihalk2

New Member
Joined
Feb 22, 2023
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
Hi All,

I’m looking for some assistance with writing VBA. Please see the attached screenshot of the sample worksheet. The objective is to create a macro that will run through this sheet and create a .PDF saved on the user’s desktop. I believe this may require use of coding that I am conceptually familiar with but not adept at using yet. The need is to fill in the <text> below and have that script saved as a .PDF file.

Script to display on .PDF file

Staff worked with <Name from Column A> <Count of shifts from Column C> times this month.

During that time, the following goals were worked on: <Individually list the goals from Column E and Count of each goal occurrence> (Example: ADL: 5 times, Night Supervision: 9 times, Hygiene: 2 times, etc.)

<Name from Column A> responded positively <Count of “Positive: Loved” and “Positive: Enjoyed” occurrences from Column F> (Example: Loved: 1 time, Enjoyed 5 times) to all activities this month.
 

Attachments

  • Capture.PNG
    Capture.PNG
    92.8 KB · Views: 15

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,214,942
Messages
6,122,366
Members
449,080
Latest member
Armadillos

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