> Hi Jonathan,
>
> Thank you for replying. I tried replacing the Normal.dot first,
> unfortunately that didn't work either. I'll check the network
> connections today and see if that will resolve it. If not, I'll try
> the Excel DAO options you listed. Hopefully I can figure out how to
> integrate them properly. If not, you'll probably see another post from
> me. =)
>
> Thank you so much for taking the time to respond and for getting me the
> resources I need to try something new.
>
> Thanks again!
> Kerri
>
>
>
> Jonathan West wrote:
> > Hi Kerri
> >
> > There seems to be some problem concerning the combination of that computer
> > and that document. There is nothing obvious in your code that would cause
> > this. Other things you might look at
> >
> > - check the network connection for that computer
> > - try replacing normal.dot on the computer
> >
> > However, as a longer-term solution, you might like to look at formats other
> > than Word documents for the information you want, since Word documents are
> > comparatively slow to open. Any of the following would probably enable the
> > data to be loaded much faster on all PCs.
> >
> > 1. Plain text files, comma separated perhaps, opened using the Open command
> > and then read using the Input or Line Input command
> >
> > 2. An Excel spreadsheet. The following two articles will help you
> >
> > Load a ListBox from a Named Range in Excel using DAO
> >
http://www.word.mvps.org/FAQs/InterDev/FillListBoxFromXLDAO.htm> >
> > Retrieving Data from a Named Range in Excel using DAO
> >
http://www.word.mvps.org/FAQs/InterDev/XLToWordWithDAO.htm> >
> > 3. An INI file. Use the code on Karl Peterson's website to retrieve values
> > from the INI file
> >
http://vb.mvps.org/samples/project.asp?id=kpIni> >
> > 4. An XML file. Set a reference to a version of the MSXML library in Tools
> > References to access the XML object model to read the file.
> >
> >
> > --
> > Regards
> > Jonathan West - Word MVP
> > www.intelligentdocuments.co.uk
> > Please reply to the newsgroup
> > Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
> >
> > <jkbourland[ at ]att.net> wrote in message
> > news:1152739828.454190.314820[ at ]m79g2000cwm.googlegroups.com...
> > >I am currently running a VBA UserForm in Word 2000 and 2003.
> > >
> > > In the userform initialize statement, the template pulls in data from a
> > > saved word document that is set up as a table. This table has 7
> > > columns and 66 rows. This list the employees, phone...and other data
> > > to be pulled into the document. I recently copied the document that
> > > stores employee data and renamed it. I then updated the table by
> > > modifying text in two of the columns.
> > >
> > > The userform works fine on 74 of 75 computers. On one computer it
> > > takes 20 seconds (which seems like an hour) for the userform to display
> > > and you see it opening the word document behind the sceens...looks like
> > > it is going to hang but then it shows the form and works fine. If I
> > > change my code to use the original document it is fast again. I
> > > don't understand why only one computer is having issues.
> > >
> > >
> > > Things I've tried:
> > > Uninstalled and reinstalled MS Word 2003 - installed all updates
> > >
> > > Word Document - Table:
> > > Stripped the table of formatting and recreated table in new doc -
> > > just incase there was some code causing the problems.
> > >
> > >
> > > ScreenUpdating = False
> > > I added this in the initialize stmt....did nothing. (then removed)
> > > I added = True before the form is loaded then = False before it runs
> > > the code that opens the Word table. (didn't work)
> > >
> > > I put the Initialize code below. Thank you in advance for you time.
> > > Kerri
> > >
> > >
> > > CODE: go down to '==========================
> > >
> > > Private Sub UserForm_Initialize()
> > > Dim sourcedoc As Document, i As Integer, j As Integer, myitem As
> > > Range, m As Long, n As Long
> > > Application.ScreenUpdating = True
> > > 'This populates the combo box for Office Location
> > > cmbOfficeLocation.AddItem "Phoenix"
> > > cmbOfficeLocation.AddItem "Scottsdale"
> > > 'This populates the combo box for Letter type.
> > > cmbLtrType.AddItem "Individual"
> > > cmbLtrType.AddItem "Firm"
> > > 'This populates the combo box for Delivery Instructions
> > > cmbDeliveryInstructions.AddItem "ATTORNEY/CLIENT PRIVILEGED"
> > > cmbDeliveryInstructions.AddItem "PERSONAL AND CONFIDENTIAL"
> > > cmbDeliveryInstructions.AddItem "VIA FACSIMILE (xxx) xxx-xxxx"
> > > 'This Populates the combo box for Closing
> > > cmbClosing.AddItem "Very truly yours,"
> > > cmbClosing.AddItem "Sincerely,"
> > > cmbClosing.AddItem "Sincerely yours,"
> > > cmbClosing.AddItem "Best regards,"
> > >
> > > Application.ScreenUpdating = False
> > >
> > > '==========================
> > > 'Steps provided by Doug Robbins - Word MVP
> > > ' Open the file containing the Author details
> > > ' Modify the path in the following line so that it matches where
> > > you Saved Authors.doc
> > > Set sourcedoc = Documents.Open(FileName:="S:\JW Temp
> > > Authors\JWAuthor List.doc")
> > >
> > > ' Get the number of Authors = number of rows in the table of Author
> > > details less one,
> > > 'assuming that the first row is a header row
> > > i = sourcedoc.Tables(1).Rows.Count - 1
> > >
> > > ' Get the number of columns in the table of Author details
> > > j = sourcedoc.Tables(1).Columns.Count
> > >
> > > ' Set the number of columns in the Combobox to match
> > > ' the number of columns in the table of Author details
> > > cmbAuthorsInitials.ColumnCount = j
> > >
> > > ' Define an array to be loaded with the Author data
> > > Dim MyArray() As Variant
> > >
> > > 'Load client data into MyArray
> > > ReDim MyArray(i, j)
> > > For n = 0 To j - 1
> > > For m = 0 To i - 1
> > > Set myitem = sourcedoc.Tables(1).Cell(m + 2, n + 1).Range
> > > myitem.End = myitem.End - 1
> > > MyArray(m, n) = myitem.Text
> > > Next m
> > > Next n
> > >
> > > ' Load data into cmbAuthoursInitials
> > > cmbAuthorsInitials.List() = MyArray
> > >
> > > ' Close the file containing the client details
> > > sourcedoc.Close SaveChanges:=wdDoNotSaveChanges
> > > '==========================
> > >
> > > 'Inserts Current Date
> > > txtDate.Text = Format$(Date$, "mmmm d, yyyy")
> > > End Sub
> > >