I am having serious problems with one of my spreadsheets.
The spreadsheet (A) imports data from another spreadsheet (B) onto a new tab, it then uses the data on the tab to populate a form.
Spreadsheet B has a cell that contains approx 1500 characters of text which should be printed on the back of the form.
Using my PC the text is printed on the back absolutely fine no problems.
Using someone elses PC only imports 251 characters of text from the cell in spreadsheet B.
I dont understand how this is happening, Both PC's are using Excel 2003 sp3.
The code that is being used is
Sheets.Add
ActiveSheet.Name = "import data"
With ActiveSheet.QueryTables.Add(Connection:=Array( _
"OLEDB;Provider=Microsoft.Jet.OLEDB.4.0;Password="""";User ID=Admin;Data Source=\\addresses\addressData\" _
, _
"\Master Print Shop Work Load.xls;Mode=Share Deny Write;Extended Properties=""HDR=YES;"";Jet O" _
, _
"LEDB:System database="""";Jet OLEDB:Registry Path="""";Jet OLEDB:Database Password="""";Jet OLEDB:Engine Type=35;Jet OLEDB:Database Lo" _
, _
"cking Mode=0;Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Global Bulk Transactions=1;Jet OLEDB:New Database Password="""";Jet OLE" _
, _
"DB:Create System Database=False;Jet OLEDB:Encrypt Database=False;Jet OLEDB:Don't Copy Locale on Compact=False;Jet OLEDB:Compact " _
, "Without Replica Repair=False;Jet OLEDB:SFP=False"), Destination:=Range("A1" _
))
.CommandType = xlCmdTable
.CommandText = Array("Summary$")
.Name = "Master Print Shop Work Load"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.PreserveColumnInfo = True
.SourceDataFile = _
"\\addresses\addressData\Master Print Shop Work Load.xls"
.Refresh BackgroundQuery:=False
End With
End Sub
Any Ideas?
Bookmarks