اذهب الي المحتوي
أوفيسنا

تجميع عامود طويل في صفحة


إذهب إلى أفضل إجابة Solved by سليم حاصبيا,

الردود الموصى بها

  • أفضل إجابة

جرب هذا الكود

Option Explicit

Sub Facilite_table()
Dim i%, col%, R%, How_many
How_many = InputBox("How Many Columns Do You Want")
Range("c1").CurrentRegion.ClearContents
i = 1: col = 3: R = 1
Do Until Range("a" & i) = vbNullString
 Cells(R, col) = Range("a" & i)
  R = R + 1
  If R > How_many Then col = col + 1: R = 1
   i = i + 1
Loop
Range("c1").CurrentRegion.Columns.AutoFit
  End Sub

 

رابط هذا التعليق
شارك

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information