Blanchetdb
Board Regular
- Joined
- Jul 31, 2018
- Messages
- 161
- Office Version
- 2016
- Platform
- Windows
Hi,
What do need to add to this piece of coding so that the it doesn't stop if no information is inserted in cell Q5
thans
Dan
What do need to add to this piece of coding so that the it doesn't stop if no information is inserted in cell Q5
Code:
theString = Range(" Q5").Value 'cast to string
theObject.SetText theString
theObject.PutInClipboard 'copy from cell B2 to clipboard.
.Selection.Goto what:=-1, Name:="DelManLocation"
.Selection.Paste 'paste from the clipboard to the Word Doc.
thans
Dan