Solved

Grid alignment setting

Posted on 2000-03-25
1
128 Views
Last Modified: 2010-05-02
Hi,

I tried to set

MSFlexGrid1.CellAlignment = flexAlignLeftCenter

but the numbers still go to right.

Anything wrong?

0
Comment
Question by:victorlong
1 Comment
 
LVL 3

Accepted Solution

by:
wpsjr1 earned 40 total points
ID: 2657197
I see the VB5 help file has the following:

Sub Form1_Load ()
      MSFlexGrid1.CellAlignment = flexAlignLeftCenter
End Sub

This is incorrect.  You must set the row and col and THEN set the CellAlignment for EACH cell.  It cannot be done globally, AFAIK.

Good Luck!

Paul

http://www.syix.com/wpsjr1/index.html
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
vba find the last empty column 10 88
Paint/Redraw window while dragging 16 68
vbModal 12 31
MS Access 03, TransferText, decimal places 8 37
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now