Hi experts
We are using VBA in Word 2013 to automate letters and so on. Data is exported from our system to csv files. I've run into an issue where the csv file only holds the dataname (first line) but no actual data. When I then run this command:
ActiveDocument.MailMerge.O
penDataSou
rce Name:=MyDataSource
We get a popup asking to correct the datasource. Is there a way to check if the datasource is empty and then handle it from there, so it doesn't interrupt the script?
![Word-pop-up.png]()
(This is the pop-up, that I'm trying to avoid. It's in Danish, sorry for that)
Thx.
Allan
Fantastic to see your name. I remember you answered some of my question back in the days, maybe 10 years ago or so on ExpertExchange.
Would it be possible to check if the csv has more than on line without opening it in word.