Go Back   Access World Forums > Apps and Windows > Word

 
Reply
 
Thread Tools Rate Thread Display Modes
Old 04-24-2017, 11:34 AM   #1
aaronb50
Newly Registered User
 
Join Date: Mar 2014
Posts: 185
Thanks: 61
Thanked 2 Times in 2 Posts
aaronb50 is on a distinguished road
.Visible = True causing 483

So I have a word doc with some text boxes that I make a copy of and add data to.

It has been working just fine for at least two years.

And it still works correctly on a second program.

But for some reason, all of a sudden the line of code

Code:
 
.Visible = True
is causing an error. 438: object doesn't support this property or method

I have no clue why its not working all of a sudden.

Code:
 
Set appWord = New Word.Application
Set doc = appWord.Documents.Open("" & MSONewIssue & "", , True)
 
With doc
.FormFields("Text1").Result = "" & b & "" 'wo
.FormFields("Text2").Result = Me.Text4.Value  ' SN
.FormFields("Text3").Result = "N/A"  ' Higher SN
.FormFields("Text4").Result = "1" ' Quantity
.FormFields("Text5").Result = Date
.FormFields("Text6").Result = Me.Text0.Value
.Visible = True
.Activate

.SaveAs "" & Issue & ""

.Close

End With
Set doc = Nothing

appWord.ActiveDocument.Close
appWord.Quit
Set appWord = Nothing

aaronb50 is offline   Reply With Quote
Old 04-24-2017, 12:18 PM   #2
Ranman256
Newly Registered User
 
Join Date: Apr 2015
Location: KY,USA
Posts: 3,320
Thanks: 0
Thanked 728 Times in 713 Posts
Ranman256 will become famous soon enough Ranman256 will become famous soon enough
Re: .Visible = True causing 483

documents arent invisible, Word app is:
appWord.visible = false
Ranman256 is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
visible = true or false Makaveli Forms 7 07-21-2008 07:17 AM
Can a button not set itself to visible not true? Ankarn Forms 4 07-14-2008 05:16 AM
Me.GoingCrazyOverForm.Visible = True Ray Stantz Modules & VBA 3 05-11-2007 09:02 AM
Visible True/False pd06498 Forms 1 05-08-2004 07:46 AM




All times are GMT -8. The time now is 09:43 AM.


Microsoft Access Help
General
Tables
Queries
Forms
Reports
Macros
Modules & VBA
Theory & Practice
Access FAQs
Code Repository
Sample Databases
Video Tutorials

Featured Forum post


Sponsored Links


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) copyright 2017 Access World