+ Reply to Thread
Results 1 to 12 of 12

Code Required for Entire column text to one cell

  1. #1
    Forum Contributor
    Join Date
    08-27-2016
    Location
    INDIA
    MS-Off Ver
    2003,2007,2010
    Posts
    134

    Question Code Required for Entire column text to one cell

    Hi Friends,

    i want one macro for Entire specific column text to one cell.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Contributor tax112's Avatar
    Join Date
    02-28-2013
    Location
    Thailand
    MS-Off Ver
    Excel 2016 | 2019
    Posts
    438

    Re: Code Required for Entire column text to one cell

    Quote Originally Posted by structo View Post
    Hi Friends,

    i want one macro for Entire specific column text to one cell.

    Thank you.
    Try:
    PHP Code: 
    Public Function X(ByVal Rng As RangeOptional ByVal k As String " ") As String
        Dim c 
    As RangeSt As String
        
    For Each c In Rng
            St 
    St c.Value
        Next c
        X 
    Right(StLen(St) - 1)
    End Function 
    HTML Code: 

  3. #3
    Forum Contributor
    Join Date
    08-27-2016
    Location
    INDIA
    MS-Off Ver
    2003,2007,2010
    Posts
    134

    Re: Code Required for Entire column text to one cell

    Thank you mate,

    any direct single code? because my range is variable.

    Thanks.
    Last edited by structo; 08-31-2016 at 02:53 AM.

  4. #4
    Forum Contributor tax112's Avatar
    Join Date
    02-28-2013
    Location
    Thailand
    MS-Off Ver
    Excel 2016 | 2019
    Posts
    438

    Re: Code Required for Entire column text to one cell

    Quote Originally Posted by structo View Post
    Thank you mate,

    any direct single code?

    Thanks.
    Step by step:
    1. Copy the VBA code
    2. Select the Worbook in which you want to store the Excel VBA code
    3. Press Alt +F11
    4. Choose Insert ---> Module
    5.Paste the Macro into the Module
    6. Close the VBA

  5. #5
    Forum Contributor
    Join Date
    08-27-2016
    Location
    INDIA
    MS-Off Ver
    2003,2007,2010
    Posts
    134

    Re: Code Required for Entire column text to one cell

    dear mate,

    i know above procedure, can you provide any alternative code for shorten the procedure? without formula pasting procedure.

    Thank you.

  6. #6
    Forum Contributor tax112's Avatar
    Join Date
    02-28-2013
    Location
    Thailand
    MS-Off Ver
    Excel 2016 | 2019
    Posts
    438

    Re: Code Required for Entire column text to one cell

    Quote Originally Posted by structo View Post
    dear mate,

    i know above procedure, can you provide any alternative code for shorten the procedure? without formula pasting procedure.

    Thank you.
    I do not understand.

  7. #7
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Code Required for Entire column text to one cell

    i need also.

  8. #8
    Forum Contributor
    Join Date
    08-27-2016
    Location
    INDIA
    MS-Off Ver
    2003,2007,2010
    Posts
    134

    Re: Code Required for Entire column text to one cell

    Code should be Run by "Run macro" option.

  9. #9
    Registered User
    Join Date
    08-25-2016
    Location
    kay ell
    MS-Off Ver
    2007
    Posts
    33

    Re: Code Required for Entire column text to one cell

    maybe what op needs is code that have option for him to choose cell or range and etc
    maybe

  10. #10
    Forum Contributor tax112's Avatar
    Join Date
    02-28-2013
    Location
    Thailand
    MS-Off Ver
    Excel 2016 | 2019
    Posts
    438

    Re: Code Required for Entire column text to one cell

    Quote Originally Posted by structo View Post
    Code should be Run by "Run macro" option.
    Add Code:
    PHP Code: 
    Sub Maybe1()
        [
    H5] = "=X(RC[-3]:R[6]C[-3])"
    End Sub 
    Run Code Sub Maybe1.

  11. #11
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Code Required for Entire column text to one cell

    Maybe:

    Please Login or Register  to view this content.
    It does essentially the same thing as the proposed Function.

  12. #12
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Code Required for Entire column text to one cell

    all codes are good
    Last edited by pvsvprasad; 08-31-2016 at 10:35 AM.

+ 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] Delete entire row in table if cell in column P contains any value (numbers or text)
    By BuntyMac in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-29-2016, 02:49 PM
  2. vba find text , move entire cell to the same row column C
    By sausis in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-08-2015, 04:12 AM
  3. Macro code to delete entire row if cell in column A is equal to a value
    By mm671750 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-07-2014, 02:54 PM
  4. [SOLVED] How do you assign a VBA code to an entire column and not a single cell?
    By Adampc in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-15-2013, 08:48 AM
  5. formula required for entire column
    By Rajraj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-17-2013, 11:00 AM
  6. [SOLVED] VBA to convert cell to text and ensuring 7 digit number all along in entire column.
    By shiva_reshs in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-19-2013, 09:35 AM
  7. Macro code to delete entire row if the cell in column C = 0
    By glock9mm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-18-2013, 02:50 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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1