Consulting

Results 1 to 8 of 8

Thread: DataGrid & MSFlexGrid Controls

  1. #1

    DataGrid & MSFlexGrid Controls

    What is the differance between these two controls? How can I input data into the cells of these controls. I put the MSFlexGrid COntrol on my form but when I click on run, I cannot input anything into its cell!

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Hi Maryam,
    I moved your question to the Excel forum
    Regards
    MD
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    Hi. Isnt it related to VBA in Excel?
    what is smart indent? where is it? My problem is small and basically I want to know how to input a number into the cells of these controls. In VBA part when I click on run and the DataGrid or MSFlexGrid control comes I cannot input anything into the cell!

  4. #4
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Hi Maryam
    Your post was in the wrong forum, so I moved it here.
    Smart Indent does all the indenting when you write VBA code, similar to the code you see posted here.
    I've never used these controls, so can't advise at the moment. How are you wanting to use them? To what data do they relate? Have you a spreadsheet you can post explaining your intentions?
    Regards
    MD
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  5. #5
    VBAX Master stanl's Avatar
    Joined
    Jan 2005
    Posts
    1,141
    Location
    Quote Originally Posted by mdmackillop
    Hi Maryam
    I've never used these controls, so can't advise at the moment. How are you wanting to use them?MD
    It does beg the question, why would you want to insert a grid into Excel, which in itself is essentially a grid? Stan

  6. #6
    VBAX Tutor Erdin? E. Ka's Avatar
    Joined
    Sep 2006
    Location
    Bursa
    Posts
    264
    Location
    Hi maryam,

    I attached a file which is includes a MsFlexGrid control.
    First click toCommandButton1 on the Sheet1 for open UserForm1.
    Then,you can input some datas from a sheet to this control by click to CommandButton1 of UserForm1.

    Hope it helps.

    By the way i don't have some example about DataGrid, but i know that control. I am going to share with you if i can complete some example.

    Note:
    You need to MSFLXGRD.OCX ActiveX file to use this control.
    Erdin? E. Kara?am | Loves from Bursa city in Republic of T?rkiye

  7. #7
    VBAX Tutor Erdin? E. Ka's Avatar
    Joined
    Sep 2006
    Location
    Bursa
    Posts
    264
    Location
    I tried to attach the control file but it was invalid process.

    If you don't have i can send your e-mail.
    Erdin? E. Kara?am | Loves from Bursa city in Republic of T?rkiye

  8. #8
    VBAX Tutor Erdin? E. Ka's Avatar
    Joined
    Sep 2006
    Location
    Bursa
    Posts
    264
    Location
    I want to add some important information about MsFlexGrid & DataGrid:

    In fact, i think Excel is created because users need to some objects like a DataGrig or MsFlexGrid. Usually these controls using where Ms Excel is not exist. For example in a UserForm. But in fact you should use a Spreadsheet Control instead of a MsFlexGrid or a DataGrid.

    However, although as a detail, i must tell you this important knowledge; a MsFlexGrid or a DataGrid objects never keeps data. The maximum lifetime of these controls untill a UserForm is closing. These controls are only for veiwing the data.

    Consequently, i think there is no some extra advantage to input data to these controls.

    Best regards.
    Erdin? E. Kara?am | Loves from Bursa city in Republic of T?rkiye

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •