ไปยังเนื้อหาหลัก

วิธีรับและแทรกชื่อผู้ใช้ที่แก้ไขล่าสุดใน Excel

บทความนี้จะแสดงวิธีรับข้อมูลชื่อผู้ใช้ที่แก้ไขล่าสุดและแทรกข้อมูลชื่อผู้ใช้ที่แก้ไขล่าสุดในเซลล์ใน Excel

รับชื่อผู้ใช้ที่แก้ไขล่าสุดของสมุดงานปัจจุบันใน Excel
แทรกชื่อผู้ใช้ที่แก้ไขล่าสุดของสมุดงานปัจจุบันด้วยฟังก์ชันที่ผู้ใช้กำหนดเอง
แทรกชื่อผู้ใช้ในเซลล์ส่วนหัวหรือส่วนท้ายได้อย่างง่ายดายด้วย Kutools for Excel


รับชื่อผู้ใช้ที่แก้ไขล่าสุดของสมุดงานปัจจุบันใน Excel

ดังที่เราทราบเราสามารถรับข้อมูลชื่อผู้ใช้ที่แก้ไขล่าสุดได้ในกล่องโต้ตอบคุณสมบัติขั้นสูงของสมุดงานปัจจุบัน

หากคุณใช้ Excel 2007

คุณสามารถรับชื่อผู้ใช้ที่แก้ไขสมุดงานปัจจุบันครั้งล่าสุดใน Excel โดยทำตามขั้นตอนต่อไปนี้:

ขั้นตอนที่ 1: คลิกปุ่ม ปุ่ม Office >> เตรียมการ >> อสังหาริมทรัพย์ .

ขั้นตอนที่ 2: จากนั้นบานหน้าต่างเอกสารจะถูกเพิ่มไว้เหนือแผ่นงาน คลิก คุณสมบัติเอกสาร >> คุณสมบัติขั้นสูง.

ขั้นตอนที่ 3: ในกล่องโต้ตอบคุณสมบัติขั้นสูงที่เปิดขึ้นคุณจะเห็นไฟล์ บันทึกล่าสุดโดย: ข้อมูลภายใต้ สถิติ แถบ

ถ้าคุณใช้ Excel 2010, 2013 หรือใหม่กว่า

หากคุณใช้ Microsoft Excel 2010 หรือเวอร์ชันที่ใหม่กว่าคุณสามารถรับข้อมูลผู้ใช้ที่แก้ไขล่าสุดได้โดยทำตามขั้นตอนต่อไปนี้:

เพียงแค่คลิกที่ เนื้อไม่มีมัน > ข้อมูลคุณจะได้รับไฟล์ แก้ไขล่าสุดโดย ข้อมูลทางด้านขวาใต้ ผู้เกี่ยวข้อง มาตรา. ดูภาพหน้าจอต่อไปนี้


ใส่ชื่อผู้ใช้ที่แก้ไขสมุดงานปัจจุบันครั้งล่าสุดด้วยฟังก์ชันที่ผู้ใช้กำหนดเอง

1: กดปุ่ม ALT + F11 คีย์เพื่อเปิด Microsoft Visual Basic สำหรับแอปพลิเคชัน หน้าต่าง

2: ใน Microsoft Visual Basic สำหรับแอปพลิเคชัน หน้าต่างคลิก สิ่งที่ใส่เข้าไป > โมดูลและวางมาโครต่อไปนี้ในหน้าต่างโมดูล ดูภาพหน้าจอ L

รหัส VBA: ใส่ชื่อผู้ใช้ที่แก้ไขล่าสุดใน Excel

Function LastAuthor()
LastAuthor = ActiveWorkbook.BuiltinDocumentProperties("Last Author")
End Function

3: กด อื่น ๆ + Q ปุ่มเพื่อปิดไฟล์ Microsoft Visual Basic สำหรับแอปพลิเคชัน หน้าต่าง

4. เลือกเซลล์ที่คุณต้องการใส่ชื่อผู้ใช้ป้อนสูตร = LastAuthor () ลงในแถบสูตรแล้วกดปุ่ม เข้าสู่ สำคัญ. จากนั้นชื่อผู้ใช้ที่แก้ไขล่าสุดจะถูกแทรกลงในเซลล์ทันที ดูภาพหน้าจอ:


แทรกชื่อผู้ใช้ในเซลล์ส่วนหัวหรือส่วนท้ายได้อย่างง่ายดายด้วย Kutools for Excel

คุณสามารถแทรกชื่อผู้ใช้ในเซลล์ที่ระบุส่วนหัวของแผ่นงานหรือส่วนท้ายใน Excel ด้วยนามสกุล แทรกข้อมูลสมุดงาน ประโยชน์ของ Kutools สำหรับ Excel. กรุณาดำเนินการดังนี้

ก่อนที่จะใช้ Kutools สำหรับ Excelโปรด ดาวน์โหลดและติดตั้งในตอนแรก.

1 คลิก Kutools พลัส > สมุดงาน > แทรกข้อมูลสมุดงาน. ดูภาพหน้าจอ:

2 ใน แทรกข้อมูลสมุดงาน คุณต้อง:

1). เลือกไฟล์ ชื่อผู้ใช้ ตัวเลือกใน ข้อมูล มาตรา.

2). หากคุณต้องการแทรกชื่อผู้ใช้ลงในเซลล์ที่ระบุโปรดระบุเซลล์นี้ในไฟล์ พิสัย กล่อง; สำหรับการใส่ชื่อผู้ใช้ลงในส่วนหัวหรือส่วนท้ายโปรดเลือกไฟล์ ส่วนหัว or ฟุตบอล ตัวเลือก

3). คลิก Ok ปุ่ม. ดูภาพหน้าจอ:

จากนั้นชื่อผู้ใช้จะถูกแทรกลงในตำแหน่งที่กำหนดทันที

  หากคุณต้องการทดลองใช้ยูทิลิตีนี้ฟรี (30 วัน) กรุณาคลิกเพื่อดาวน์โหลดแล้วไปใช้การดำเนินการตามขั้นตอนข้างต้น

สุดยอดเครื่องมือเพิ่มผลผลิตในสำนักงาน

🤖 Kutools AI ผู้ช่วย: ปฏิวัติการวิเคราะห์ข้อมูลโดยยึดตาม: การดำเนินการที่ชาญฉลาด   |  สร้างรหัส  |  สร้างสูตรที่กำหนดเอง  |  วิเคราะห์ข้อมูลและสร้างแผนภูมิ  |  เรียกใช้ฟังก์ชัน Kutools...
คุณสมบัติยอดนิยม: ค้นหา เน้น หรือระบุรายการที่ซ้ำกัน   |  ลบแถวว่าง   |  รวมคอลัมน์หรือเซลล์โดยไม่สูญเสียข้อมูล   |   รอบโดยไม่มีสูตร ...
การค้นหาขั้นสูง: VLookup หลายเกณฑ์    VLookup หลายค่า  |   VLookup ข้ามหลายแผ่น   |   การค้นหาที่ไม่ชัดเจน ....
รายการแบบเลื่อนลงขั้นสูง: สร้างรายการแบบหล่นลงอย่างรวดเร็ว   |  รายการแบบหล่นลงขึ้นอยู่กับ   |  เลือกหลายรายการแบบหล่นลง ....
ผู้จัดการคอลัมน์: เพิ่มจำนวนคอลัมน์เฉพาะ  |  ย้ายคอลัมน์  |  สลับสถานะการมองเห็นของคอลัมน์ที่ซ่อนอยู่  |  เปรียบเทียบช่วงและคอลัมน์ ...
คุณสมบัติเด่น: กริดโฟกัส   |  มุมมองการออกแบบ   |   บาร์สูตรใหญ่    สมุดงานและตัวจัดการชีต   |  ห้องสมุดทรัพยากร (ข้อความอัตโนมัติ)   |  เลือกวันที่   |  รวมแผ่นงาน   |  เข้ารหัส/ถอดรหัสเซลล์    ส่งอีเมลตามรายการ   |  ซุปเปอร์ฟิลเตอร์   |   ตัวกรองพิเศษ (กรองตัวหนา/ตัวเอียง/ขีดทับ...) ...
ชุดเครื่องมือ 15 อันดับแรก12 ข้อความ เครื่องมือ (เพิ่มข้อความ, ลบอักขระ, ... )   |   50 + แผนภูมิ ประเภท (แผนภูมิ Gantt, ... )   |   40+ ใช้งานได้จริง สูตร (คำนวณอายุตามวันเกิด, ... )   |   19 การแทรก เครื่องมือ (ใส่ QR Code, แทรกรูปภาพจากเส้นทาง, ... )   |   12 การแปลง เครื่องมือ (ตัวเลขเป็นคำ, การแปลงสกุลเงิน, ... )   |   7 ผสานและแยก เครื่องมือ (แถวรวมขั้นสูง, แยกเซลล์, ... )   |   ... และอื่น ๆ

เพิ่มพูนทักษะ Excel ของคุณด้วย Kutools สำหรับ Excel และสัมผัสประสิทธิภาพอย่างที่ไม่เคยมีมาก่อน Kutools สำหรับ Excel เสนอคุณสมบัติขั้นสูงมากกว่า 300 รายการเพื่อเพิ่มประสิทธิภาพและประหยัดเวลา  คลิกที่นี่เพื่อรับคุณสมบัติที่คุณต้องการมากที่สุด...

รายละเอียด


แท็บ Office นำอินเทอร์เฟซแบบแท็บมาที่ Office และทำให้งานของคุณง่ายขึ้นมาก

  • เปิดใช้งานการแก้ไขและอ่านแบบแท็บใน Word, Excel, PowerPoint, ผู้จัดพิมพ์, Access, Visio และโครงการ
  • เปิดและสร้างเอกสารหลายรายการในแท็บใหม่ของหน้าต่างเดียวกันแทนที่จะเป็นในหน้าต่างใหม่
  • เพิ่มประสิทธิภาพการทำงานของคุณ 50% และลดการคลิกเมาส์หลายร้อยครั้งให้คุณทุกวัน!
Comments (16)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
How can the Activeworkbook be dynamic?

I tried to no success the below code

LastSavedby = Range("A1").value.BuiltinDocumentProperties("Last Author")

Where in A1 contains the path of the file with the file name and extension
This comment was minimized by the moderator on the site
Hi! I, my case it doesn't work automatically, I need to press "enter" after the formula "= VBAProject.Module3.LastAuthor()".
How should i make it automatic?
Thank you
This comment was minimized by the moderator on the site
Hey, this code worked nicely. Is there a way I can display the user name if a ROW is adjusted? For example, I hhave Column K with the header "Last modified By", and I want to know who adjusted "each row" as this is a shared document. I have the below code for Date, which works like how I would want the name to work: Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column > 11 Or Target.Row = 1 Then Exit Sub Application.EnableEvents = False Cells(Target.Row, 12) = Now Application.EnableEvents = True End Sub Please email me if possible
This comment was minimized by the moderator on the site
Hi. I would like to ask how to write the VBA codes to retrieve all current users which modifying on the worksheet. Thank You:)
This comment was minimized by the moderator on the site
thanks a lot for this helpful article. I used it and it worked well. can I get the last modified date on that sheet just like the username ? MANY THANKS
This comment was minimized by the moderator on the site
Can u pls help if iwant the user name to appear in aspreadsheet as and when the previous cell is filled by a user
This comment was minimized by the moderator on the site
Thanks, Cp & Jay Chivo :)
This comment was minimized by the moderator on the site
Sub UserName() Sheets("Sheet1").Range("A1").Value = Environ("username") End Sub --------------- Change the sheet name
This comment was minimized by the moderator on the site
I am runing excel 2007 and am getting the runtime error 9, script out of range as well. any way to make it work in excel 2007?
This comment was minimized by the moderator on the site
Excel 2010. Same time i would like to ask that is it possible to use this Subscript with another function script ? Thanks Naghman
This comment was minimized by the moderator on the site
[quote]Excel 2010. Same time i would like to ask that is it possible to use this Subscript with another function script ? Thanks NaghmanBy Naghman[/quote] With another script? What script? :-)
This comment was minimized by the moderator on the site
To get last saved date. Function LastSaveDate() Application.Volatile True LastSaveDate = FileDateTime(ThisWorkbook.FullName) End Function
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations