Results 1 to 4 of 4

How to convert a Huge matrix to a column?

Threaded View

  1. #1
    Registered User
    Join Date
    02-18-2017
    Location
    Iran
    MS-Off Ver
    2019
    Posts
    19

    How to convert a Huge matrix to a column?

    I Have a matrix and need to convert all cells in a single column and found a VBA to do that. The Problem is that VBA doesn't work in huge data like a 800x800 matrix, so I should divide that matrix to more possible tables.

    Sub ConvertRangeToColumn()
    'UpdatebyExtendoffice
    Dim Range1 As Range, Range2 As Range, Rng As Range
    Dim rowIndex As Integer
    xTitleId = "KutoolsforExcel"
    Set Range1 = Application.Selection
    Set Range1 = Application.InputBox("Source Ranges:", xTitleId, Range1.Address, Type:=8)
    Set Range2 = Application.InputBox("Convert to (single cell):", xTitleId, Type:=8)
    rowIndex = 0
    Application.ScreenUpdating = False
    For Each Rng In Range1.Rows
        Rng.Copy
        Range2.Offset(rowIndex, 0).PasteSpecial Paste:=xlPasteAll, Transpose:=True
        rowIndex = rowIndex + Rng.Columns.Count
    Next
    Application.CutCopyMode = False
    Application.ScreenUpdating = True
    End Sub
    Last edited by sushiant; 10-30-2020 at 02:12 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Formula to convert 1 column/row to matrix
    By congnt92 in forum Excel Formulas & Functions
    Replies: 56
    Last Post: 08-27-2018, 10:39 PM
  2. [SOLVED] Convert 1 huge column in to mult column to fit on 1/2 pages
    By justinwb in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-15-2018, 05:10 AM
  3. Convert 1 huge column in to mult column to fit on 1/2 pages
    By justinwb in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-13-2018, 03:12 AM
  4. Convert matrix to column, with label and value
    By TomHFC in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-05-2013, 01:29 PM
  5. Convert matrix into column data
    By Misheel in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-22-2013, 12:17 PM
  6. convert matrix to column
    By wbsimey in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-29-2012, 11:41 PM
  7. Convert a tri-matrix into a column
    By djaovnieds in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-17-2009, 04:50 AM

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