Solved

Grid to Size

Posted on 2000-04-14
1
159 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
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…

790 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