petermeachem
Programmer
Can't see how to do this.
I have
Set vbExcel = CreateObject("Excel.Application"
With vbExcel
.WorkBooks.Add
With .ActiveWorkBook
.Sheets(1).Range("A1" = "Customer"
etc etc
End With
End With
I need to do two things
1) Format cells E1:E50 as Currency
I've been struugling away for a couple of hours with things like .Range("E1:E5".NumberFormat = "currency" and only get error messages.
2) Put a few formula in. For instance set a cell to SUM("E1:E5"
I haven't a clue what I'm doing here as have not had to do this before.
Could someone enlighten me?
I have
Set vbExcel = CreateObject("Excel.Application"
With vbExcel
.WorkBooks.Add
With .ActiveWorkBook
.Sheets(1).Range("A1" = "Customer"
etc etc
End With
End With
I need to do two things
1) Format cells E1:E50 as Currency
I've been struugling away for a couple of hours with things like .Range("E1:E5".NumberFormat = "currency" and only get error messages.
2) Put a few formula in. For instance set a cell to SUM("E1:E5"
I haven't a clue what I'm doing here as have not had to do this before.
Could someone enlighten me?