Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-11-2017, 04:29 PM
Aurelius Aurelius is offline Opening word document from excel 2013 Windows 10 Opening word document from excel 2013 Office 2013
Novice
Opening word document from excel 2013
 
Join Date: Mar 2017
Posts: 2
Aurelius is on a distinguished road
Default Opening word document from excel 2013

Hi, I'd like to open a word document and export data to it. I used to be able to do this in Excel 2003 (having been away for a while). In Excel 2013 this is no longer possible.

This is / was my code:

Sub Rapport_Xl_to_Word()

Dim Navn1, Navn2 As String
Dim dato As Date
'Dim wordapp As New Word.Application

Set wordapp = CreateObject("Word.Application")

'dato = Format(Now, "dd-mm-yyyy")

With wordapp
.Visible = True
.Documents.Open Filename:="C:\Desktop\Økonomirapport.docx"
..........

End With
End Sub



Where is the problem?
Thanks for any help provided!
Reply With Quote
  #2  
Old 03-12-2017, 01:47 PM
Aurelius Aurelius is offline Opening word document from excel 2013 Windows 10 Opening word document from excel 2013 Office 2013
Novice
Opening word document from excel 2013
 
Join Date: Mar 2017
Posts: 2
Aurelius is on a distinguished road
Default

Ok. It's been too long. The issue was the I didn't input the correct file location. Go figure...
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening word document from excel 2013 Word 2013 not opening wolfie138 Word 1 01-05-2016 03:39 AM
Opening word document from excel 2013 Excel 2013 File Opening Arrgh Excel 1 05-07-2015 03:19 PM
Opening word document from excel 2013 2013 Upgrade Causes slow opening of Document ptmuldoon Word 1 01-04-2015 05:05 PM
Opening word document from excel 2013 Word Document Not Opening With Excel VBA JennEx Word VBA 3 06-20-2013 10:10 AM
Get just grey box when opening Excel Document 2010 sebbero Excel 1 11-10-2010 04:24 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:48 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft