ابوسلماان قام بنشر نوفمبر 9, 2016 قام بنشر نوفمبر 9, 2016 الاعزاء الكرام ،،،،،،،،،،،،، صباح الخيرات احتاج الى تعديل في الكود التالي بحيث يقوم بعملية الفرز ولكن بتعديل تنسيق الاعمدة المفروزة الى " نص " . Range("F5:G1000").Select ActiveWorkbook.Worksheets("Groups").Sort.SortFields.Clear ActiveWorkbook.Worksheets("Groups").Sort.SortFields.Add Key:=Range("G5:G1000") _ , SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _ xlSortTextAsNumbers With ActiveWorkbook.Worksheets("Groups").Sort .SetRange Range("F5:G1000") .Header = xlGuess .MatchCase = False .Orientation = xlTopToBottom .SortMethod = xlPinYin .Apply End With وتقبلوا خالص الود ،،،
الـعيدروس قام بنشر نوفمبر 15, 2016 قام بنشر نوفمبر 15, 2016 أضف السطر التالي على الكود Range("G5:G1000").NumberFormat = "@" وهذا الكود تبعك ومضاف عليه السطر Range("F5:G1000").Select ActiveWorkbook.Worksheets("Groups").Sort.SortFields.Clear ActiveWorkbook.Worksheets("Groups").Sort.SortFields.Add Key:=Range("G5:G1000") _ , SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _ xlSortTextAsNumbers '---- Range("G5:G1000").NumberFormat = "@" '---- With ActiveWorkbook.Worksheets("Groups").Sort .SetRange Range("F5:G1000") .Header = xlGuess .MatchCase = False .Orientation = xlTopToBottom .SortMethod = xlPinYin .Apply End With ' تحياتي 1
الردود الموصى بها
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.