Hi All,
I am new to VBA, and was hoping someone could help me with one of my macros. I am trying to make a macro that will save a worksheet as a PDF with a specific name and date (which will change). In addition, this file will be saved as a pdf often with new information each time, so the macro needs to capture the name and date changes to distinguish the different pdf copies. Here is what I have so far:
In Cell A6 I have the following:Please Login or Register to view this content.
="C:\Users\Connor\Documents\For Work\"&TEXT($E$8,"Text")&"_"&TEXT($G$3,"mmm-dd-YYYY")&".pdf"
Where E8 is the cell containing the name (that changes) and G3 is a cell with the date on the excel form.
The line shows up like I expected:
C:\Users\Connor\Documents\For Work\Name_Sep-01-2013.pdf
However, when I go to run the macro, I keep getting an error type 13 mismatch, and I can't figure out where I went wrong.
Does anyone know what I'm doing wrong? Thanks in advance!!
Bookmarks