Alignement in Excel (solved)

Post Reply
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Alignement in Excel (solved)

Post by driessen »

Hello,

I want to make an Excel-document from my FWH-application.

I need to align the cells in my Excel document.

To achieve tha, I try this :

Code: Select all

/* Explanation cPos :
   cPos = 0 -> Standaad alignement
   cPos = 1 -> Left alignement
   cPos = 2 -> Centered
   cPos = 3 -> Right alignement
   cPos = 4 -> Left + right alignement
*/
oSheet:Range("A1"):HorizontalAlignment := cPos
Unfortunately, nothing is changing.

What do I do wrong?
Does anyone have another suggestion?

Thanks a lot in advance for any help.
Last edited by driessen on Sun Oct 27, 2019 4:21 pm, edited 1 time in total.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Alignement in Excel

Post by cnavarro »

C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Alignement in Excel (solved)

Post by driessen »

Thanks a lot for your help. It works just fine.

Sorry I couldn't remember my previous topic about this subject.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
Post Reply