Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-18-2014, 04:19 AM
KSReynolds KSReynolds is offline wordapp.ActiveDocument.SaveAs  Not Working Windows 7 32bit wordapp.ActiveDocument.SaveAs  Not Working Office 2003
Novice
wordapp.ActiveDocument.SaveAs  Not Working
 
Join Date: Oct 2013
Posts: 7
KSReynolds is on a distinguished road
Default wordapp.ActiveDocument.SaveAs Not Working

Word 2010, Access 2010. I have VBA code that successfully opens up Word, merges my document with my template, but then does not save the file with the values I am supplying. This IS working for my 200 users, but it is not working on my workstation. I am wondering if there is some setting in Word that I need to change so that this code will work.



'This is not working, the file is not saving
wordapp.ActiveDocument.SaveAs ReportDir & LabNumber & "_" & ItemNumber & "_" & CATEGORY & ".doc", , , , , DecryptPIN(DLookup("PIN_NUMBER", "ANALYST", "FULL_NAME='" & ana_txt & "'"))
wordapp.ActiveDocument.Close

The file itself wants to save as the words that appear in my heading.

All of my values show as valid in the immediate window in Access. What am I missing here? I admit I am cross-posting, UtterAccess had no replies for me. And that is unheard of.

Thank you.
Reply With Quote
  #2  
Old 07-18-2014, 04:03 PM
macropod's Avatar
macropod macropod is offline wordapp.ActiveDocument.SaveAs  Not Working Windows 7 32bit wordapp.ActiveDocument.SaveAs  Not Working Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

This is unlikely to be a Word or VBA issue, since it is working for your other users. Rather, it is more likely to be an issue with network permissions and/or what the ReportDir variable is being populated with.

PS: For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184. You need to provide links between the two sites, so anyone looking at the issue on either can take into account what has been said on the other.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
wordapp.ActiveDocument.SaveAs  Not Working How to suppress saveas dialog from VB6 steveneashcraft Word VBA 15 05-09-2014 07:01 AM
wordapp.ActiveDocument.SaveAs  Not Working Using With ActiveDocument.Tables() SuzeG Word VBA 1 01-08-2014 02:00 PM
wordapp.ActiveDocument.SaveAs  Not Working Saveas error handling jillapass Word VBA 7 03-30-2012 03:24 PM
wordapp.ActiveDocument.SaveAs  Not Working saveAs ChDir _ tinfanide Excel Programming 4 11-05-2011 01:40 AM
wordapp.ActiveDocument.SaveAs  Not Working Array into ComboBox + Macro-Text into ActiveDocument Vivi Word VBA 1 01-27-2010 07:03 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:35 AM.


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