R
RJ
I have successfully opened a new Excel Workbook from Word
VBA, added a Worksheet - and can write info to cells.
But i cant seem to get to the point of making the
Selection process work. Here is my code:
'Open a NEW workbook
oXL.Visible = True
oXL.Workbooks.Add
With oXL
Cells.Select
With Selection
.HorizontalAlignment = xlRight
.VerticalAlignment = xlBottom
etc...
but at the Selection part (as copied from Excel) it does
not work.
What i am wanting to do is to format the entire sheet
right aligned and then change 2 of the columns to left
align.
Appreciate any assistance...
Thanks
VBA, added a Worksheet - and can write info to cells.
But i cant seem to get to the point of making the
Selection process work. Here is my code:
'Open a NEW workbook
oXL.Visible = True
oXL.Workbooks.Add
With oXL
Cells.Select
With Selection
.HorizontalAlignment = xlRight
.VerticalAlignment = xlBottom
etc...
but at the Selection part (as copied from Excel) it does
not work.
What i am wanting to do is to format the entire sheet
right aligned and then change 2 of the columns to left
align.
Appreciate any assistance...
Thanks