Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-03-2018, 04:16 PM
jarnold231 jarnold231 is offline Opening Excel from Word Windows 10 Opening Excel from Word Office 2016
Novice
Opening Excel from Word
 
Join Date: May 2018
Posts: 2
jarnold231 is on a distinguished road
Default Opening Excel from Word

Good evening. I'm hoping someone here can give me some help with what I assume is a relatively simple VBA programming challenge, but which is well beyond my VBA capabilities.

I am trying to create a macro that performs the following actions.
  1. User opens .docm Word file
  2. VBA automatically opens a referenced
  3. Excel File The Excel file runs a Private_sub (this is all working)
  4. User answers a Application.Input box in the Excel Word document updates all links from Excel File
  5. Word requires the user to SaveAs the Word document

I understand that the VBA needs to be embedded in the Microsoft Word Objects "ThisDocument" section of VBA. I've tried a number of scripts that I've found online which include the use of Objects (things like Dim excelApp As Excel.Application), but I always get a runtime error.



Really hoping someone can give me a bit of an idiots guide to getting the basic structure of this set up.

Any help greatly appreciated.

Jake
Reply With Quote
 

Tags
vba word



Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening Excel from Word Opening word document from excel 2013 Aurelius Excel Programming 1 03-12-2017 01:47 PM
Opening Excel from Word Opening excel from word AXbean Word VBA 2 02-26-2017 12:59 AM
Opening Excel from Word Hyperlinks error msg on opening in Excel, Word matilda Excel 3 05-04-2015 07:06 AM
Opening Excel from Word Word Document Not Opening With Excel VBA JennEx Word VBA 3 06-20-2013 10:10 AM
Slow Opening Word and Excel files itoa Office 1 05-11-2009 02:01 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:48 PM.


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