Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

resizing Flexgrid

Posted on 2003-03-14
1
Medium Priority
?
876 Views
Last Modified: 2008-02-01
Hi,

please ammend this code to resize the height of MSflexgrid rows to 100 , and resize the columns width to be autofit


MSflexGrid1.Rows = RS.RecordCount
For i = 0 To MSflexGrid1.Rows
   MSflexGrid1.RowHeight(i) = 100
Next

MSflexGrid1.Cols = RS.Fields.Count
For i = 0 To MSflexGrid1.Cols
   MSflexGrid1.colwidth(i) = ???
Next

thanx
0
Comment
Question by:toni2002
1 Comment
 
LVL 1

Accepted Solution

by:
vim_asteya earned 150 total points
ID: 8141949
am not able to recollect the exact code, try this, will give the exact code in another 2 days,but by then u will have the other experts help too.

MSflexGrid1.Rows = RS.RecordCount
For i = 0 To MSflexGrid1.Rows
  MSflexGrid1.RowHeight(i) = 100
Next

MSflexGrid1.Cols = RS.Fields.Count
For i = 0 To MSflexGrid1.Cols
  MSflexGrid1.colwidth(i) = form.textwidth(MSflexGrid1.textmatrix(MSflexGrid1.row,MSflexGrid1.col))
Next

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Suggested Courses
Course of the Month10 days, 5 hours left to enroll

571 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