Solved

Grid alignment setting

Posted on 2000-03-25
1
127 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…

743 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

12 Experts available now in Live!

Get 1:1 Help Now