Results 1 to 4 of 4

And values same row column after column

Threaded View

nunocabete And values same row column... 06-04-2012, 06:07 AM
arlu1201 Re: And values same row... 06-04-2012, 06:19 AM
StevenM Re: And values same row... 06-04-2012, 06:32 AM
nunocabete Re: And values same row... 06-04-2012, 06:41 AM
  1. #1
    Registered User
    Join Date
    05-30-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2003
    Posts
    37

    And values same row column after column

    Hello everyone, i have this code in a work but after work the data like there is its difficulty so i decide change. Instead past i the same column line after line i would like to past always in the same line but column after column, but i am unsuccessful at the moment.

    OLD CODE
    
    Private Sub OKButton_Click()
    Dim emptyRow As Long
    Sheets(1).Activate
    emptyRow = WorksheetFunction.CountA(Range("Q:Q")) + 1
    Cells(emptyRow, 17).Value = INDUÇÃOTextBox.Value
    Unload Me
    End Sub
    i try change but save me the values always in the same cell.

    NEW CODE TRYING
    Private Sub OKButton_Click()
    Dim emptyRow As Long
    Sheets(1).Activate
    emptyColumn = WorksheetFunction.Count(Range("B2")) + 1
    Cells(2, emptyColumn).Value = INDUÇÃOTextBox.Value
    Unload Me
    End Sub

    The excel with the sample its to big almost 2mb and the forum dont allow
    Last edited by nunocabete; 06-04-2012 at 06:34 AM. Reason: Please use code tags in future.

Thread Information

Users Browsing this Thread

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

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