ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Adding to AutoComplete programmatically (https://www.excelbanter.com/excel-programming/295542-adding-autocomplete-programmatically.html)

Jim McLeod

Adding to AutoComplete programmatically
 
Dear Group

Is it possible to add words to AutoComplete programmatically (VBA or C#)

Best regards

Jim...

eDGAR

Adding to AutoComplete programmatically
 
Jim

Do you mean Autocorrect?

If so the following should do it:

Application.AutoCorrect.AddReplacement What:="Eg",
Replacement:="Example"

HTH

Edgar


-----Original Message-----
Dear Group,

Is it possible to add words to AutoComplete

programmatically (VBA or C#)?

Best regards,

Jim...
.


Jim McLeod

Adding to AutoComplete programmatically
 
Hi Edgar

Nope, not AutoCorrect.

I want words to complete automatically when you start typing them. However, I'd like the application to have a pre-buffered list when the sheet is opened.

I've been looking for a keyboard event trigger other than OnKey. This method fires macros. I'd like something that triggers a keyboard event across my C# automated application

Best regards

Jim...

Tom Ogilvy

Adding to AutoComplete programmatically
 
If you are talking about the intellisense action of completing a word when
typed below a list with a similar word, this is internal to excel. It is
based solely on the proximity entries in that column.

--
Regards,
Tom Ogilvy


"Jim McLeod" wrote in message
...
Hi Edgar,

Nope, not AutoCorrect.

I want words to complete automatically when you start typing them.

However, I'd like the application to have a pre-buffered list when the sheet
is opened.

I've been looking for a keyboard event trigger other than OnKey. This

method fires macros. I'd like something that triggers a keyboard event
across my C# automated application.

Best regards,

Jim...





All times are GMT +1. The time now is 01:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com