How do I stop excel from helping with autofill?

OaklandJim

Well-known Member
Joined
Nov 29, 2018
Messages
880
Office Version
  1. 365
Platform
  1. Windows
Team Mr. Excel

In a first name cell or a last name cell user inputs some or all letters of a name. Event handler then goes to data and looks up all qualifying records from a database. Example: type in da into last name cell and names Danials, Danson and David are found.

It all works well. BUT, recently I have been getting an annoying issue that I have no idea how to fix.

Apparently at one point I must have typed the words First Name and Last Name into the respective cells because now if I enter say the letter f (lower case) into the first name cell the words First Name are automatically entered by Excel into the cell (AutoComplete). Same for last name cell: if I enter an l (lower case L) Excel enters the words Last Name.

So how do I stop excel from helping with autofill?

If I turn it off in File > Options > Advanced > "Enable AutoComplete" it is off for all workbooks. And this is for a client so disabling autocomplete will not work when I send the file to her.

I appreciate your response in advance.

Jim
 
I'd still like to know how to turn off autocomplete with vba but I found a kluge. The reason that I was getting that issue is because there were two headers in my worksheet reading "First Name" in the same column as first name input cell. And there are two headers with the text "Last Name" in the same column as the last name input cell. So Excel was helping by autofilling First Name or Last Name: text found in the same column as input cells.

As unsatisfying as it is; the klugey fix was to add a space in front of the headers' text. That way Excel did not see the offending text in the respective column.

There must be a better way?

I tried using
VBA Code:
Application.AutoCorrect.AutoFillFormulasInLists = False

Thanks again.

Jim
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top