Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
office automation Word-Excel
I call this code and always fails with Error number: - 2147023113 VBA Project Execute Method Failed. I don't know why it fails. Anybody
wdNew.Content.Selec For col = 1 To With wdApp.Selection.Fin fcontent = exSheet.Cells(rec, col).Valu .Execute FindText:=sfield(c), ReplaceWith:=fcontent, Replace:=wdReplaceAll, Forward:=True, Wrap:=wdFindContinu End Wit Nex |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
office automation Word-Excel
pggardener
Just a guess: How is sfield dimmed, as an array? Has the variable 'c' been initialized? -- Dick Kusleika MVP - Excel www.dicks-clicks.com Post all replies to the newsgroup. "pggardner" wrote in message ... I call this code and always fails with Error number: - 2147023113 VBA Project Execute Method Failed. I don't know why it fails. Anybody? wdNew.Content.Select For col = 1 To 5 With wdApp.Selection.Find fcontent = exSheet.Cells(rec, col).Value .Execute FindText:=sfield(c), ReplaceWith:=fcontent, _ Replace:=wdReplaceAll, Forward:=True, Wrap:=wdFindContinue End With Next |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
office automation Word-Excel
sfield is actually define this way
Dim sfield(0 To 4) As String |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Automation of Excel Data to Word (ref: Galimi answers) | Excel Discussion (Misc queries) | |||
Data Automation from Excel to Word | Excel Discussion (Misc queries) | |||
Office automation application which will work with any version of office C#.NET | Excel Programming | |||
RP - Office 2000 automation parameters Access and excel | Excel Programming | |||
Office 2000: excel to access automation and parameters | Excel Programming |