import openpyxl

path = "C:\PycharmProjects\ExcelFiles\Excel2.xlsx"
workbook = openpyxl.load_workbook(path)
sheet = workbook.active

for r in range (1,5):
    for c in range (1,4):      
        sheet.cell(row=r,column=c).value = "anuj"

workbook.save(path)

4de4ae29b515bc3335aeeacf65c103402aad2b2b
<mask token>

<mask token>
for r in range(1, 5):
    for c in range(1, 4):
        sheet.cell(row=r, column=c).value = 'anuj'
workbook.save(path)

<mask token>
path = 'C:\\PycharmProjects\\ExcelFiles\\Excel2.xlsx'
workbook = openpyxl.load_workbook(path)
sheet = workbook.active
for r in range(1, 5):
    for c in range(1, 4):
        sheet.cell(row=r, column=c).value = 'anuj'
workbook.save(path)

import openpyxl
path = 'C:\\PycharmProjects\\ExcelFiles\\Excel2.xlsx'
workbook = openpyxl.load_workbook(path)
sheet = workbook.active
for r in range(1, 5):
    for c in range(1, 4):
        sheet.cell(row=r, column=c).value = 'anuj'
workbook.save(path)

import openpyxl

path = "C:\PycharmProjects\ExcelFiles\Excel2.xlsx"
workbook = openpyxl.load_workbook(path)
sheet = workbook.active

for r in range (1,5):
    for c in range (1,4):      
        sheet.cell(row=r,column=c).value = "anuj"

workbook.save(path)
