This is really a grey area that you may want to confirm with CRA if your claim is eligible or not. CRA looks at the purpose of the move and considers it to be eligible when you do not change employers if:
If your move is considered to be solely for personal reasons, you cannot claim Moving Expenses, and moving closer for the same position within the same company might be considered to be for personal convenience. It's really up to CRA if they consider you to meet the requirements or not.
Here is a detailed Income Tax Folio about Moving Expenses: https://www.canada.ca/en/revenue-agency/services/tax/technical-information/income-tax/income-tax-folios-index/series-1-individuals/folio-3-family-unit-issues/income-tax-folio-s1-f3-c4-moving-expenses.html#N101DA
This is really a grey area that you may want to confirm with CRA if your claim is eligible or not. CRA looks at the purpose of the move and considers it to be eligible when you do not change employers if:
If your move is considered to be solely for personal reasons, you cannot claim Moving Expenses, and moving closer for the same position within the same company might be considered to be for personal convenience. It's really up to CRA if they consider you to meet the requirements or not.
Here is a detailed Income Tax Folio about Moving Expenses: https://www.canada.ca/en/revenue-agency/services/tax/technical-information/income-tax/income-tax-folios-index/series-1-individuals/folio-3-family-unit-issues/income-tax-folio-s1-f3-c4-moving-expenses.html#N101DA