+ Reply to Thread
Results 1 to 18 of 18

Capturing data from userform into the workbook

Hybrid View

ciapul12 Capturing data from userform... 11-24-2013, 06:08 PM
mehmetcik Re: Capturing data from... 11-24-2013, 07:59 PM
mehmetcik Re: Capturing data from... 11-24-2013, 08:01 PM
ciapul12 Re: Capturing data from... 11-25-2013, 04:37 AM
mehmetcik Re: Capturing data from... 11-25-2013, 05:30 AM
ciapul12 Re: Capturing data from... 11-25-2013, 05:50 AM
mehmetcik Re: Capturing data from... 11-25-2013, 01:09 PM
ciapul12 Re: Capturing data from... 11-25-2013, 06:34 PM
mehmetcik Re: Capturing data from... 11-25-2013, 07:29 PM
ciapul12 Re: Capturing data from... 11-26-2013, 05:04 AM
mehmetcik Re: Capturing data from... 11-26-2013, 08:44 AM
ciapul12 Re: Capturing data from... 11-26-2013, 09:14 AM
mehmetcik Re: Capturing data from... 11-26-2013, 10:31 AM
ciapul12 Re: Capturing data from... 11-26-2013, 10:49 AM
mehmetcik Re: Capturing data from... 11-26-2013, 12:15 PM
ciapul12 Re: Capturing data from... 11-26-2013, 04:40 PM
ciapul12 Re: Capturing data from... 11-26-2013, 05:05 PM
ciapul12 Re: Capturing data from... 11-27-2013, 05:42 PM
  1. #1
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Capturing data from userform into the workbook

    An improved and faster method is:-

    Instead of saving the data onto the spreadsheet, save it into an array.

    Then you can move the data around within the array.

    Then write the array into excel. This is one write instruction and therefore fast.

  2. #2
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Wisbech England
    MS-Off Ver
    Excel 2010
    Posts
    308

    Re: Capturing data from userform into the workbook

    Not really surer what you mean????
    Tahnks

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Capturing data from userform into the workbook

    
    
    
    Private Sub cmdClose_Click()
    Count = 1
    Dim myArray As Variant
    ReDim myArray(Me.Controls.Count)
    Dim cCont As Control
    
        For Each cCont In Me.Controls
        
    If TypeName(cCont) <> "Label" And TypeName(cCont) <> "Frame" Then
     temp = TypeName(cCont)
    ' Cells(1, Count).Value = cCont.Value
     myArray(Count) = cCont.Value
                
                
    Count = Count + 1
    End If
    10      Next cCont
    
    'Manipulate columns like this:-
    myArray(0) = myArray(24)
    
    Range("A1", Cells(1, Me.Controls.Count)).Value = myArray
    
    Unload Me
    End Sub
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Wisbech England
    MS-Off Ver
    Excel 2010
    Posts
    308

    Re: Capturing data from userform into the workbook

    Hi
    Now I am slowly getting it :-)
    Is it possible to have a data from the combo boxes and textboxes to appeared in a specific columns?
    Also why in some columns it says TRUE and FALSE?
    And is it possible to add data from this userform in the next empty row?
    I appreciate your help and support.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] userform data capturing in next available row
    By ciapul12 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-21-2013, 05:24 PM
  2. [SOLVED] Capturing open workbook as variable?
    By aaron.irvine in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-11-2013, 04:34 AM
  3. Replies: 2
    Last Post: 04-14-2013, 05:27 AM
  4. Capturing data from a userform to a worksheet
    By goldbeje in forum Excel General
    Replies: 0
    Last Post: 08-29-2012, 07:22 PM
  5. Replies: 3
    Last Post: 10-18-2011, 11:30 AM

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1