ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,226
- Office Version
- 2007
- Platform
- Windows
Morning,
I am stuck with the correct way of adding the cell for my PDF to be generated.
I have two options in my code.
This which works fine.
But trying to get the cell G13 to work in this line if causing me an issue for some reason.
This works if i dont apply G13
But my attempt keeps telling me required list separator or )
I am stuck with the correct way of adding the cell for my PDF to be generated.
I have two options in my code.
This which works fine.
Rich (BB code):
MsgBox "GENERATED PDF " & Range("G13").Value & vbNewLine & vbNewLine & " WAS NOT SAVED AS IT ALLREADY EXISTS", vbCritical + vbOKOnly, "GENERATE PDF FILE MESSAGE"
But trying to get the cell G13 to work in this line if causing me an issue for some reason.
This works if i dont apply G13
Rich (BB code):
pdf = MsgBox("GENERATED PDF " & " WAS SAVED SUCCESSFULLY" & vbNewLine & vbNewLine & "DO YOU WISH TO NOW PRINT IT ?", vbExclamation + vbYesNo, "GENERATE PDF FILE MESSAGE")
But my attempt keeps telling me required list separator or )
Rich (BB code):
pdf = MsgBox("GENERATED PDF " & Range("G13").Value " & " WAS SAVED SUCCESSFULLY" & vbNewLine & vbNewLine & "DO YOU WISH TO NOW PRINT IT ?", vbExclamation + vbYesNo, "GENERATE PDF FILE MESSAGE")