Alignement in Excel (solved)

Alignement in Excel (solved)

Postby driessen » Sun Oct 27, 2019 3:23 pm

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  Expand view  RUN
/* 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. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Alignement in Excel

Postby cnavarro » Sun Oct 27, 2019 3:28 pm

Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Alignement in Excel (solved)

Postby driessen » Sun Oct 27, 2019 4:22 pm

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. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 35 guests