Results 1 to 4 of 4

Thread: Create a user control form in Excel 2010

  1. #1
    Join Date
    May 2012
    Posts
    50

    Create a user control form in Excel 2010

    I want to create database in Excel 2010 such that it will consist of inbuilt Windows form. It will have textboxes with labels to mention their purpose. It should work in a way such that data that I enter in the Windows form should be inserted in the Excel 2010 document according to the column name. Also it should generate data automatically before taking in the entry every day. Can someone help me with it?

  2. #2
    Join Date
    Dec 2010
    Posts
    106

    Re: Create a user control form in Excel 2010

    You can use the macros in Excel 2010 to get such a thing in your document. I don’t have much idea about creati8ng Windows form in the Excel 2010. I have been using Visual Basic 2012 to create Windows form and then connecting it to Excel 2010. Also for the purpose of the date you will need to use macros. One thing I would like to say about Excel 2010 if you are going to use it as database. You need to fill every field to get the entry right without any error. So you need to make another macro to fill the empty spaces with some random value.

  3. #3
    Join Date
    May 2011
    Posts
    97

    Re: Create a user control form in Excel 2010

    I have designed a macro to have a database in Excel 2010. The forms will have to be designed by you according to your need. Here is the code for creating database in Excel 2010,

    Application.ScreenUpdating = False
    Set quotetracking = Workbooks.Open( ActiveWorkbook.Path & "\yourexceldoc.xls", _
    False, True)
    ListItems = quotetracking.quotelist(1).Range("B2:B21").Value
    SourceWB.Close False
    Set SourceWB = Nothing
    Application.ScreenUpdating = True
    ListItems = Application.WorksheetFunction.Transpose(ListItems)
    The place where I have typed ‘yourexceldoc.xls’, replace it with the name of the file you have created.

  4. #4
    Join Date
    Mar 2010
    Posts
    145

    Re: Create a user control form in Excel 2010

    If you are using more than one document for same interface or maybe there is relation between multiple files, then editing each of them individually would become much hectic. You can use this code to merge multiple files to work in integrity. Here is the code for it,

    Code:
    Public Fileway As String
    Private Sub UserForm_Activate()
    Fileway = ActiveWorkbook.Path
    Me.Caption = Me.Caption & "Filepath:" & Fileway
    End Sub
    When using this insert names of the files that you want to use as database. Put the name with extension in place of Filepath: that I have marked with red color.

Similar Threads

  1. Need help to create a login user form in Microsoft Excel
    By Henriksen in forum MS Office Support
    Replies: 2
    Last Post: 23-02-2012, 06:04 PM
  2. Replies: 6
    Last Post: 10-07-2011, 11:13 AM
  3. Excel 2010 spreadsheet automatically create and rename
    By cHYNA in forum Windows Software
    Replies: 4
    Last Post: 15-01-2011, 03:12 AM
  4. Replies: 6
    Last Post: 19-10-2010, 03:49 AM
  5. Create user defined functions in Excel 2007
    By AbhayD in forum Windows Software
    Replies: 3
    Last Post: 24-06-2009, 07:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,283,672.26108 seconds with 17 queries