:D snasui.com ยินดีต้อนรับ :D
ยินดีต้อนรับสู่กระดานถามตอบ Excel and VBA และอื่น ๆ ที่เป็นมิตรกับทุกท่าน มีไฟล์แนบมหาศาล ช่วยให้ท่านค้นหาและติดตามศึกษาได้โดยง่าย :thup: สมาชิกท่านใดที่ยังไม่ได้ระบุ Version ของ Excel ที่ใช้งานจริง สามารถทำตาม Link นี้เพื่อจะได้รับคำตอบที่ตรงกับ Version ของท่านครับ :arrow: ระบุ Version ของ Excel
:!: โปรดทราบ :!:
  1. กรุณาอ่านกฎการใช้บอร์ด (Forum rules) ในตำแหน่งด้านบนของแต่ละบอร์ด
  2. การสมัครสมาชิก การ Login การกู้คืนรหัสผ่าน
    1. สมัครสมาชิกดูขั้นตอนได้ที่ :arrow: สมัครสมาชิก
    2. Login เข้าระบบโดยคลิกปุ่ม Login ตรงมุมขวาบนของหน้านี้ :roll:
    3. การ Login ผ่าน Facebook ดูวิธีที่ :arrow: Login ผ่าน Facebook
    4. ลืมรหัสผ่านสามารถรับรหัสใหม่ได้ที่ :arrow: Reset รหัสผ่าน
  3. มีปัญหาการใช้งาน แจ้งผู้ดูแลระบบได้ที่ :arrow: ติดต่อผู้ดูแลระบบ
  4. กำหนดการตั้งค่าส่วนตัว เช่นตั้งค่าภาษาเป็นไทยหรืออังกฤษดูได้ที่ :arrow: ตั้งค่าส่วนตัว
  5. การตั้งและตอบกระทู้ดูได้ที่ :arrow: วิธีการตั้งและตอบกระทู้
  6. การจัดรูปแบบตัวอักษรด้วย bbcode ในช่องแสดงความคิดเห็นดูได้ที่ :arrow: จัดรูปแบบตัวอักษร
  7. กำหนดขนาดตัวอักษรใน Browser ดูได้ที่ :arrow: กำหนดขนาดตัวอักษรใน Browser

VBA ขยาย Range ข้าม cell ว่าง

ฟอรัมถาม-ตอบปัญหาการใช้งาน Macro และ VBA
Forum rules
  1. ไม่อนุญาตให้ใช้ภาษาแชทในการถามและตอบปัญหา ไม่ใช้คำว่า "คับ" หรือ "อ่ะครับ" แทนคำว่า "ครับ" ไม่ใช้คำว่า "เด๋ว" แทนคำว่า "เดี๋ยว" เป็นต้น เนื่องจากเมื่อแปลเป็นภาษาต่างประเทศแล้วจะให้ความหมายผิดไปจากที่ควรจะเป็น
  2. ห้ามถามโดยระบุชื่อผู้ตอบและต้องตั้งชื่อกระทู้ให้สื่อถึงปัญหาที่จะถาม ไม่ตั้งชื่อว่า ช่วยด้วยครับ, มีปัญหามาปรึกษาครับ เป็นต้น
  3. กรุณาอธิบายปัญหาและระบุคำตอบที่ต้องการมาในกระทู้ด้วยเสมอถึงแม้จะอธิบายไว้ในไฟล์แนบแล้วก็ตาม ทั้งนี้เพื่ออำนวยความสะดวกแก่เพื่อนสมาชิกในการค้นหาข้อมูล
  4. กรุณาแนบไฟล์ตัวอย่างพร้อมแสดงคำตอบที่ถูกต้องมาในไฟล์ด้วยเพื่อให้ง่ายต่อการทำความเข้าใจและสะดวกต่อการตอบคำถาม (ขนาดไฟล์ไม่เกิน 500Kb ขนาดภาพไม่เกิน 800*600 Pixel) ไม่แนบเป็น Link มาจากแหล่งอื่นที่อาจจะถูกลบทิ้งไปโดยต้นทางในภายหลัง นอกจากนี้ไม่ควรแนบไฟล์ที่มีข้อมูลสำคัญอันก่อให้เกิดความเสียหายกับตนเองและผู้อื่น
  5. กรณีเป็นคำถามเกี่ยวกับ Programming เช่น VBA, VB.Net, C#, SQL ฯลฯ ต้องลองเขียนมาเองก่อนเสมอ ถามเฉพาะที่ติดปัญหา ระบุ Module, Procedure ที่ติดปัญหาให้ชัดเจน กรุณาโพสต์ Code ให้แสดงเป็น Code คือเปิดด้วย [code] และปิดด้วย [/code] ตัวอย่างเช่น [code]dim r as range[/code] เพื่อให้แตกต่างจากข้อความทั่วไป สะดวกในการอ่านและทดสอบ (คลิกเพื่อดูตัวอย่าง)
  6. กรุณาแจ้งผลการใช้งานเมื่อได้รับคำตอบว่าตรงกับความต้องการหรือไม่
Supachok
Gold
Gold
Posts: 1014
Joined: Wed Jun 18, 2014 11:11 am
Excel Ver: 2013

VBA ขยาย Range ข้าม cell ว่าง

#1

Post by Supachok »

เรียน ท่ายผู้รู้

ถาม1
เกี่ยวกับ code ตัวนี้กรณีที่ต้องการให้ excel เลื่อนลงไปหา cell ล่างสุดที่มีอักษรที่ละ 1 step
อย่างไฟล์แนบที่ C15 (step1)
อย่างไฟล์แนบที่ C22 (step2)
ใช้ code ซ้ำไม่ได้ VBA จะขยาย range เพิ่มไปยัง C15,C22 ช่วยแนะนำ code ด้วยครับ

ถาม2
Code นี้ไม่แสดงสูตร date ใน excel sheet
[d2].Formula = "DATE(C2,B2,A2)" 'not calcucate

[c2].Select
Range(Selection, Selection.End(xlDown)).Select 'cannot go down cross blank cell to next usedrange

code เพิ่ม

Code: Select all

Sub ad()

For b = 1 To Sheets.Count
Sheets(b).Select
Sheets(b).Name = b


If [d1] = "order date" Then Exit Sub
[d:d].Insert
[d1].Value = "order date"
[d2].Formula = "DATE(C2,B2,A2)"  'not calcucate
[d2].Columns.AutoFit

[c2].Select
Range(Selection, Selection.End(xlDown)).Select  'cannot go down cross blank cell to next usedrange



Selection.Offset(0, 1).Select
Selection.FillDown
Next b

End Sub

code ลบ

Code: Select all

Sub del()


For b = 1 To Sheets.Count
Sheets(b).Select
Sheets(b).Name = b
If [d1] = "order date" Then [d:d].Delete

Next b

End Sub
Attachments
Book1 (2).xlsm
(24.42 KiB) Downloaded 7 times
User avatar
puriwutpokin
Guru
Guru
Posts: 3801
Joined: Fri Jan 04, 2013 9:49 pm
Location: Bangkok
Excel Ver: MS.365

Re: VBA ขยาย Range ข้าม cell ว่าง

#2

Post by puriwutpokin »

Supachok wrote: Tue Feb 26, 2019 9:51 pm เรียน ท่ายผู้รู้

ถาม1
เกี่ยวกับ code ตัวนี้กรณีที่ต้องการให้ excel เลื่อนลงไปหา cell ล่างสุดที่มีอักษรที่ละ 1 step
อย่างไฟล์แนบที่ C15 (step1)
อย่างไฟล์แนบที่ C22 (step2)
ใช้ code ซ้ำไม่ได้ VBA จะขยาย range เพิ่มไปยัง C15,C22 ช่วยแนะนำ code ด้วยครับ

ถาม2
Code นี้ไม่แสดงสูตร date ใน excel sheet
[d2].Formula = "DATE(C2,B2,A2)" 'not calcucate

[c2].Select
Range(Selection, Selection.End(xlDown)).Select 'cannot go down cross blank cell to next usedrange

code เพิ่ม

Code: Select all

Sub ad()

For b = 1 To Sheets.Count
Sheets(b).Select
Sheets(b).Name = b


If [d1] = "order date" Then Exit Sub
[d:d].Insert
[d1].Value = "order date"
[d2].Formula = "DATE(C2,B2,A2)"  'not calcucate
[d2].Columns.AutoFit

[c2].Select
Range(Selection, Selection.End(xlDown)).Select  'cannot go down cross blank cell to next usedrange



Selection.Offset(0, 1).Select
Selection.FillDown
Next b

End Sub

code ลบ

Code: Select all

Sub del()


For b = 1 To Sheets.Count
Sheets(b).Select
Sheets(b).Name = b
If [d1] = "order date" Then [d:d].Delete

Next b

End Sub
ใช่แบบนี้หรือไม่ครับ

Code: Select all

Sub ad()
For b = 1 To Sheets.Count
Sheets(b).Select
'Sheets(b).Name = b
[c2].Select
Range(Selection, Selection.End(xlDown)).Select  'cannot go down cross blank cell to next usedrange
Cells(Rows.Count, 3).End(xlUp).Copy Cells(Rows.Count, 3).End(xlUp).Offset(4)
Cells(Rows.Count, 3).End(xlUp).Copy Cells(Rows.Count, 3).End(xlUp).Offset(7)
Selection.Offset(0, 1).Select
Selection.FillDown
Next b
End Sub
:shock: :roll: :D
Supachok
Gold
Gold
Posts: 1014
Joined: Wed Jun 18, 2014 11:11 am
Excel Ver: 2013

Re: VBA ขยาย Range ข้าม cell ว่าง

#3

Post by Supachok »

K.puriwutpokin

Code นี้ step into แล้ว excel ไม่ขยับไปไหนเลย
Cells(Rows.Count, 3).End(xlUp).Copy Cells(Rows.Count, 3).End(xlUp).Offset(4)
Cells(Rows.Count, 3).End(xlUp).Copy Cells(Rows.Count, 3).End(xlUp).Offset(7)
User avatar
puriwutpokin
Guru
Guru
Posts: 3801
Joined: Fri Jan 04, 2013 9:49 pm
Location: Bangkok
Excel Ver: MS.365

Re: VBA ขยาย Range ข้าม cell ว่าง

#4

Post by puriwutpokin »

Supachok wrote: Tue Feb 26, 2019 10:37 pm K.puriwutpokin

Code นี้ step into แล้ว excel ไม่ขยับไปไหนเลย
Cells(Rows.Count, 3).End(xlUp).Copy Cells(Rows.Count, 3).End(xlUp).Offset(4)
Cells(Rows.Count, 3).End(xlUp).Copy Cells(Rows.Count, 3).End(xlUp).Offset(7)
ตามตัวอย่างมันก็ลงตามตำแหน่งที่กำหนดตัวอย่าง ขยับนี่คืออะไรขยับแบบไหนครับ
:shock: :roll: :D
Supachok
Gold
Gold
Posts: 1014
Joined: Wed Jun 18, 2014 11:11 am
Excel Ver: 2013

Re: VBA ขยาย Range ข้าม cell ว่าง

#5

Post by Supachok »

K.puriwutpokin

ขยับนี่คืออะไรขยับแบบไหนครับ

แบบรูปแนบครับ
Attachments
Untitled.png
Untitled.png (124.79 KiB) Viewed 159 times
User avatar
puriwutpokin
Guru
Guru
Posts: 3801
Joined: Fri Jan 04, 2013 9:49 pm
Location: Bangkok
Excel Ver: MS.365

Re: VBA ขยาย Range ข้าม cell ว่าง

#6

Post by puriwutpokin »

ขยับที่เลือกนั้น คือคอลัมน์ C2:C10 ดันไปทางขวาหรือครับ ส่วนด้านล่างไม่ต้องขยับใช่ไหมครับ
:shock: :roll: :D
Supachok
Gold
Gold
Posts: 1014
Joined: Wed Jun 18, 2014 11:11 am
Excel Ver: 2013

Re: VBA ขยาย Range ข้าม cell ว่าง

#7

Post by Supachok »

puriwutpokin wrote: Wed Feb 27, 2019 11:03 am ขยับที่เลือกนั้น คือคอลัมน์ C2:C10 ดันไปทางขวาหรือครับ ส่วนด้านล่างไม่ต้องขยับใช่ไหมครับ
C2:C10 ไปทางขวาใช้ offset (0,1)
แต่จะทำอย่างไรให้ range ขยายไป C15,c22 ก่อนขยับตามคำสั้ง offset

ถาม1
เกี่ยวกับ code ตัวนี้กรณีที่ต้องการให้ excel เลื่อนลงไปหา cell ล่างสุดที่มีอักษรที่ละ 1 step
อย่างไฟล์แนบที่ C15 (step1)
อย่างไฟล์แนบที่ C22 (step2)
ใช้ code ซ้ำไม่ได้ VBA จะขยาย range เพิ่มไปยัง C15,C22 ช่วยแนะนำ code ด้วยครับ

ถาม2
Code นี้ไม่แสดงสูตร date ใน excel sheet
[d2].Formula = "DATE(C2,B2,A2)" 'not calcucate

มี 2 คำถามที่ขอคำแนะนำ
User avatar
puriwutpokin
Guru
Guru
Posts: 3801
Joined: Fri Jan 04, 2013 9:49 pm
Location: Bangkok
Excel Ver: MS.365

Re: VBA ขยาย Range ข้าม cell ว่าง

#8

Post by puriwutpokin »

ไม่ค่อยเข้าใจ นัก ลองดูตามไฟล์แนบ ตามไฟล์เดิม ต้องรัน โค้ด del ก่อน จึงจะได้ตามไฟล์แนบนี้
แล้วรัน โค้ด ad อีกที ใช่หรือไม่ครับ ตามไฟล์แนบผมรัน โค้ด del แล้ว ลองรันตามไฟล์ต่อว่าประมาณนี้
หรือไม่ เพราะ ไม่ค่อยเข้าใจ ถ้าไม่ใช่ น่าจะทำตัวอย่าง ก่อน และหลังการรัน ผลที่ต้องการมาอีกทีครับ

Code: Select all

Sub ad()
For b = 1 To Sheets.Count
Sheets(b).Select
Sheets(b).Name = b
If [d1] = "order date" Then Exit Sub
[d:d].Insert
[d1].Value = "order date"
[d2].Formula = "=DATE(C2,B2,A2)" 'not calcucate
Range("D2", "D" & Cells(Rows.Count, 5).End(xlUp).Row).FillDown
[d2].Columns.AutoFit
[C2].Select
Range(Selection, Selection.End(xlDown)).Select  'cannot go down cross blank cell to next usedrange
Cells(Rows.Count, 3).End(xlUp).Copy Cells(Rows.Count, 3).End(xlUp).Offset(4)
Cells(Rows.Count, 3).End(xlUp).Copy Cells(Rows.Count, 3).End(xlUp).Offset(7)
Range("C2", "C" & Cells(Rows.Count, 4).End(xlUp).Row).Insert Shift:=xlToRight
Next b
End Sub
Sub del()
For b = 1 To Sheets.Count
Sheets(b).Select
Sheets(b).Name = b
If [d1] = "order date" Then [d:d].Delete
Next b
End Sub
Attachments
Book11.xlsm
(22.57 KiB) Downloaded 9 times
:shock: :roll: :D
Supachok
Gold
Gold
Posts: 1014
Joined: Wed Jun 18, 2014 11:11 am
Excel Ver: 2013

Re: VBA ขยาย Range ข้าม cell ว่าง

#9

Post by Supachok »

K' puriwutpokin

ถามใหม่ตามไฟล์แนบ
Attachments
Untitled.png
Untitled.png (78.33 KiB) Viewed 150 times
Book11 (2).xlsm
(26.04 KiB) Downloaded 7 times
User avatar
puriwutpokin
Guru
Guru
Posts: 3801
Joined: Fri Jan 04, 2013 9:49 pm
Location: Bangkok
Excel Ver: MS.365

Re: VBA ขยาย Range ข้าม cell ว่าง

#10

Post by puriwutpokin »

Supachok wrote: Wed Feb 27, 2019 2:09 pm K' puriwutpokin

ถามใหม่ตามไฟล์แนบ
ประมาณนี้หรือเปล่าครับ

Code: Select all

Sub ad()
[c2].Select
Range(Selection, Selection.End(xlDown)).Insert Shift:=xlToRight 'cannot go down cross blank cell to next usedrange
Cells(Rows.Count, 4).End(xlUp).Copy Cells(Rows.Count, 4).End(xlUp).Offset(4)
Cells(Rows.Count, 4).End(xlUp).Copy Cells(Rows.Count, 4).End(xlUp).Offset(4)
End Sub
:shock: :roll: :D
Supachok
Gold
Gold
Posts: 1014
Joined: Wed Jun 18, 2014 11:11 am
Excel Ver: 2013

Re: VBA ขยาย Range ข้าม cell ว่าง

#11

Post by Supachok »

ไม่ตรงครับ

รายการนั้นต้องอยู่ที่ Column C ลงไปยังไม่ไป D
ต้องการเพียงขยาย range จาก
C1:C10 step 1
C1:C15 step 2
C1:C22 step 3
Attachments
Untitled.png
Untitled.png (111.42 KiB) Viewed 146 times
User avatar
puriwutpokin
Guru
Guru
Posts: 3801
Joined: Fri Jan 04, 2013 9:49 pm
Location: Bangkok
Excel Ver: MS.365

Re: VBA ขยาย Range ข้าม cell ว่าง

#12

Post by puriwutpokin »

ปรับตามนี้ครับ

Code: Select all

[c2].Select
Range(Selection, Selection.End(xlDown)).Select 'cannot go down cross blank cell to next usedrange
Cells(Rows.Count, 4).End(xlUp).Offset(, -1).Resize(, 2).Copy Cells(Rows.Count, 3).End(xlUp).Offset(4)
Cells(Rows.Count, 4).End(xlUp).Offset(, -1).Resize(, 2).Copy Cells(Rows.Count, 3).End(xlUp).Offset(4)
:shock: :roll: :D
Supachok
Gold
Gold
Posts: 1014
Joined: Wed Jun 18, 2014 11:11 am
Excel Ver: 2013

Re: VBA ขยาย Range ข้าม cell ว่าง

#13

Post by Supachok »

puriwutpokin wrote: Wed Feb 27, 2019 3:34 pm ปรับตามนี้ครับ

Code: Select all

[c2].Select
Range(Selection, Selection.End(xlDown)).Select 'cannot go down cross blank cell to next usedrange
Cells(Rows.Count, 4).End(xlUp).Offset(, -1).Resize(, 2).Copy Cells(Rows.Count, 3).End(xlUp).Offset(4)
Cells(Rows.Count, 4).End(xlUp).Offset(, -1).Resize(, 2).Copy Cells(Rows.Count, 3).End(xlUp).Offset(4)
ไม่ขยับครับ
Attachments
Untitled.png
Untitled.png (107.61 KiB) Viewed 140 times
User avatar
puriwutpokin
Guru
Guru
Posts: 3801
Joined: Fri Jan 04, 2013 9:49 pm
Location: Bangkok
Excel Ver: MS.365

Re: VBA ขยาย Range ข้าม cell ว่าง

#14

Post by puriwutpokin »

ผมยังไม่เข้าใจว่าความต้องการที่แน่ชัดเลยครับ เพราะ
ดูตามรูปก็เป็นแบบนั้นแล้ว ผมว่า ตามที่แจ้งว่า ทำตัวอย่าง ก่อน และความต้องการที่ให้เป็นแบบ
ไหนมา 2 ชีทดีกว่าครับ เพราะรู้สึกเข้าใจไม่ตรงกัน เพราะตัวอย่าง ที่จบสมบูรณ์ไม่เห็นครับ
:shock: :roll: :D
User avatar
snasui
Site Admin
Site Admin
Posts: 31214
Joined: Sun Jan 24, 2010 12:33 pm
Location: Songkhla, Thailand
Excel Ver: 2010, 2019
Contact:

Re: VBA ขยาย Range ข้าม cell ว่าง

#15

Post by snasui »

:D ช่วยอธิบายมาอีกรอบครับ คำว่า "VBA ขยาย Range ข้าม cell ว่าง" ตามหัวข้อที่ตั้งมา เมื่อขยายทีละ Step แล้ว Range ที่ได้จะเป็นแบบไหน คีย์ช่วงเซลล์ที่เป็นผลลัพธ์มาทีละ Step เพื่อจะได้เข้าใจตรงกันครับ

หรือต้องการจะทำอะไร แบบไหน อย่างไร อธิบายงานที่ต้องการมาตามลำดับ การเลือก Range อาจจะไม่ใช่สิ่งจำเป็นก็อาจเป็นได้ครับ
Supachok
Gold
Gold
Posts: 1014
Joined: Wed Jun 18, 2014 11:11 am
Excel Ver: 2013

Re: VBA ขยาย Range ข้าม cell ว่าง

#16

Post by Supachok »

C2:C11 step 1
[c2].Select
Range(Selection, Selection.End(xlDown)).Select

C2:C15 step 2
C2:C22 step 3

code นี้ยังไม่สามารถตอบโจทย์ได้ตามต้องการ
Cells(Rows.Count, 4).End(xlUp).Offset(, -1).Resize(, 2).Copy Cells(Rows.Count, 3).End(xlUp).Offset(4)
Cells(Rows.Count, 4).End(xlUp).Offset(, -1).Resize(, 2).Copy Cells(Rows.Count, 3).End(xlUp).Offset(4)


step 2 และ 3 ในcolumn C จะมีตัวเลข 2019 ระบุที่ cell c15,c22
C12-c14 จะเป็นค่าว่าง ที่ต้องการข้ามและขยาย range จาก C2:C11 เป็น >>>C2:C15 และลำดับต่อไป C2:C22
Attachments
Book11 (2).xlsm
(26.04 KiB) Downloaded 9 times
User avatar
snasui
Site Admin
Site Admin
Posts: 31214
Joined: Sun Jan 24, 2010 12:33 pm
Location: Songkhla, Thailand
Excel Ver: 2010, 2019
Contact:

Re: VBA ขยาย Range ข้าม cell ว่าง

#17

Post by snasui »

:D ตัวอย่างครับ

Code: Select all

Sub ad()
    Dim x As Range, lst As Long
    lst = Range("c" & Rows.Count).End(xlUp).Row
    Set x = Range("c2").End(xlDown)
    Do While x.Row < lst
        Set x = x.End(xlDown)
        Range("c2", x).Select
    Loop
End Sub
Supachok
Gold
Gold
Posts: 1014
Joined: Wed Jun 18, 2014 11:11 am
Excel Ver: 2013

Re: VBA ขยาย Range ข้าม cell ว่าง

#18

Post by Supachok »

snasui wrote: Wed Feb 27, 2019 10:37 pm :D ตัวอย่างครับ

Code: Select all

Sub ad()
    Dim x As Range, lst As Long
    lst = Range("c" & Rows.Count).End(xlUp).Row
    Set x = Range("c2").End(xlDown)
    Do While x.Row < lst
        Set x = x.End(xlDown)
        Range("c2", x).Select
    Loop
End Sub

พอปรับตัวเลขเป็นปีอื่นๆ จึงพอเข้าใจการทำงานของสูตรได้.
แต่ step 1 ถูกข้ามไปครับ
Attachments
Untitled.png
Untitled.png (110.16 KiB) Viewed 119 times
Supachok
Gold
Gold
Posts: 1014
Joined: Wed Jun 18, 2014 11:11 am
Excel Ver: 2013

Re: VBA ขยาย Range ข้าม cell ว่าง

#19

Post by Supachok »

add Code step 1

[c2].Select
Range(Selection, Selection.End(xlDown)).Select

Code: Select all

Sub ad()
    Dim x As Range, lst As Long
    lst = Range("c" & Rows.Count).End(xlUp).Row
    Set x = Range("c2").End(xlDown)
    [c2].Select
   Range(Selection, Selection.End(xlDown)).Select
    
    Do While x.Row < lst
        Set x = x.End(xlDown)
        Range("c2", x).Select
    Loop
End Sub
User avatar
snasui
Site Admin
Site Admin
Posts: 31214
Joined: Sun Jan 24, 2010 12:33 pm
Location: Songkhla, Thailand
Excel Ver: 2010, 2019
Contact:

Re: VBA ขยาย Range ข้าม cell ว่าง

#20

Post by snasui »

Supachok wrote: Thu Feb 28, 2019 11:58 am แต่ step 1 ถูกข้ามไปครับ

:D ผมลืมลบส่วนเกินออกครับ จาก
snasui wrote: Wed Feb 27, 2019 10:37 pm

Code: Select all

Sub ad()
    Dim x As Range, lst As Long
    lst = Range("c" & Rows.Count).End(xlUp).Row
    Set x = Range("c2").End(xlDown)
    Do While x.Row < lst
        Set x = x.End(xlDown)
        Range("c2", x).Select
    Loop
End Sub
ปรับ Code Set x = Range("c2").End(xlDown) เป็น Set x = Range("c2") ครับ
Post Reply