Solved

Grid to Size

Posted on 2000-04-14
1
156 Views
Last Modified: 2010-05-02
I need to make a grid 1 row and as many coloums as the length of a word.

How do you do this.
0
Comment
Question by:mad3654
1 Comment
 
LVL 2

Accepted Solution

by:
Ber earned 30 total points
ID: 2718267
I assume you are talking about a flex grid...Well either way heres how to do it ..It couldn't be simpler

Private Sub Command1_Click()
Dim NoCols As String

NoCols = Len(Text1.Text) 'Text1.text contains The word
MSFlexGrid1.FixedCols = 0
MSFlexGrid1.FixedRows = 0
MSFlexGrid1.Rows = 1
MSFlexGrid1.Cols = NoCols 'Sets the number of columns
End Sub

This shuold do the trick I tested it to make sure it works and well it does

Good luck
Ber.....
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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

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

12 Experts available now in Live!

Get 1:1 Help Now