jon_w
07-01-2011, 02:32 AM
Hi,
I'm able to search and select a table in word using VBA, but the problem is the functions are slightly different in access, which is where i want to run the code:
Sub Copy()
Dim tbl4 As Word.Table
Dim doc As Word.Document
Set tbl4 = Selection.Document.Tables(4)
tbl4.Range.Copy
End Sub
runs prefectly in word, but i cannot use the selection function in access. Due to this being one of many stages of an access process, how can i get this same function to be done in access?
thanks
jon
I'm able to search and select a table in word using VBA, but the problem is the functions are slightly different in access, which is where i want to run the code:
Sub Copy()
Dim tbl4 As Word.Table
Dim doc As Word.Document
Set tbl4 = Selection.Document.Tables(4)
tbl4.Range.Copy
End Sub
runs prefectly in word, but i cannot use the selection function in access. Due to this being one of many stages of an access process, how can i get this same function to be done in access?
thanks
jon