Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[blue][i]YourExcelrange[/i].Copy
[i]YourWordDocument[/i].Bookmarks("[i]YourBokmark[/i]").Range.Paste[/blue]
Sub CreateSchedule()
'
Dim WordDoc As Word.Application
Set WordDoc = CreateObject("Word.Application")
WordDoc.Visible = True
Range("A2").Select
Selection.Copy
'What code do I use to paste into Word?
'How do I draw a table in Word from Excel?
'How do I format the table so that some lines are 'clear'
'but others have color?
End Sub
Dim wa As Object
Dim wd As Object
Dim wt As Object
Set wa = CreateObject("Word.application")
Set wd = wa.documents.Add
wa.Visible = True
For r = 1 To 10
If r = 1 Then
wro = 0
Set wt = wd.tables.Add(wd.Range, 3, 4)
Else
wro = wt.Rows.Count
wt.cell(wro, 1).Select
wa.Selection.insertrowsbelow 3
End If
wro = wro + 1
wt.cell(wro, 2) = Cells(r, 1)
wt.cell(wro + 1, 2) = Cells(r, 2)
wt.cell(wro + 2, 2) = Cells(r, 3)
Next
wd.Close False
wa.Quit
Set wt = Nothing
Set wd = Nothing
Set wa = Nothing