Inputbox cell selection stopped working

WesJD

New Member
Joined
Sep 6, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I am calling the InputBox function from a VB.NET application using this line:
StationCell = xlApp.InputBox(Prompt:="Select the first station cell", Default:=rngDefault.AddressLocal, Type:=8)

The inputbox is displayed, and when the user selects a cell, that cell address is supposed to be displayed in the inputbox. This has worked fine for years, but suddenly it has stopped working. The address shown in the box remains $A$1 regardless of where I click in the sheet, and even when I click on the textbox in the inputbox, I can't edit or delete the displayed address. It's like the inputbox refuses to be selected, because if I click on it and start typing, my keystrokes get entered in the last cell I had selected in the spreadsheet. Any ideas?

Thanks!
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
It turns out that was part of a bigger issue; my keyboard arrow keys also stopped working in Excel, although the rest of the keyboard still worked. Closing and re-opening Excel did not solve the problem, but rebooting did. Weird.
 
Upvote 0
Solution

Forum statistics

Threads
1,215,136
Messages
6,123,243
Members
449,093
Latest member
Vincent Khandagale

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