Merge and center

  • Thread starter Thread starter gr
  • Start date Start date
G

gr

Hi, I'm trying to give format to a Cell in Excel form
access. Can someone help me?

I have a text in cell A1 and trying to Merge and center
from A1 to D1.

I tried this statement but not working

gobjeExcel.Cells(1, "A:D").Align = xlPhoneticAlignCenter

Many thanks,
gr
 
gr,

With gobjeExcel.Range("A3:D3")
.HorizontalAlignment = xlCenter
.Merge
End With

HTH,
Bernie
MS Excel MVP
 
oooops!

That, of course, should be:

Range("A1:D1"), not Range("A3:D3")

Sorry about that,
Bernie
MS Excel MVP
 
Back
Top