Hi,
I need to get the below to start from A2 rather than A1. I think i need to Offset the row but for the life of me cannot get this to work. copied the part of the VBA where i believe this needs to be added.
If someone could help that would be great
I need to get the below to start from A2 rather than A1. I think i need to Offset the row but for the life of me cannot get this to work. copied the part of the VBA where i believe this needs to be added.
If someone could help that would be great
Code:
et wkb = appExcel.ActiveWorkbook
Set wks = wkb.Sheets(1)
wks.Activate
ActiveCell.Offset(rowOffset:=1, columnOffset:=0).Activate 'this is what i've tried'
appExcel.Application.Visible = False
'Copy field items in mail folder.
For Each itm In fld.Items
intColumnCounter = 1
Set rng = wks.Cells(intRowCounter, intColumnCounter)
rng.Value = msg.Subject
intColumnCounter = intColumnCounter + 1
Set rng = wks.Cells(intRowCounter, intColumnCounter)
rng.Value = msg.Sender
intColumnCounter = intColumnCounter + 1
Set rng = wks.Cells(intRowCounter, intColumnCounter)
rng.Value = msg.SenderEmailAddress
intColumnCounter = intColumnCounter + 1
Set rng = wks.Cells(intRowCounter, intColumnCounter)
rng.Value = msg.Body
intColumnCounter = intColumnCounter + 1
Set rng = wks.Cells(intRowCounter, intColumnCounter)
rng.Value = msg.To
intColumnCounter = intColumnCounter + 1
Set rng = wks.Cells(intRowCounter, intColumnCounter)
rng.Value = msg.ReceivedTime
Next itm
With wkb.Sheets(1)
.Range("A:F").WrapText = False
End With
wkb.Close 1
If bXStarted Then
xlApp.Quit
End If
' Show summary message
MsgBox "Finished" _
Last edited: