Excel Ghost Behaviour

WPOON

New Member
Joined
Oct 10, 2019
Messages
1
Hi all,

I have a macro enabled spreadsheet that has multiple auto-complete drop-down lists. When the file is shared the drop-down list did not appear from the selected cell but instead appeared in another cell (see screenshot from the link below). I have also attached the spreadsheet if someone could review for me.

https://wetransfer.com/downloads/519a06a6c9e5a31cf4f093364f2ed77420191010085328/f4ffe187d8bc94ae973ab9895a332e9b20191010085328/7d0000

It could be an excel bug and cannot be resolved. if so, is there any alternative ways to create a spreadsheet that can be shared and can contain auto-complete drop-down lists?

Thanks.
 

sijpie

Well-known Member
Joined
Nov 1, 2008
Messages
3,527
No idea why it is doing that. But I am wondering, why don't you use normal validation dropdown in that column?

I also think, if you want to persist with a combobox, that you should create the combobox once and fill it (on worksheet_activate, declare the combobox as a module variable). Then in selectionchange only do the positioning and visibility part. Because what you are doing also does not work properly if the workbook is not shared. I see remnants of comboboxes in several cells, etc.

I also noticed that you set a worksheet object variable to the active sheet. But since the code is in the worksheet object, you can refer to this worksheet as 'Me'.
Code:
Me.Range("A1") = 2
 

Forum statistics

Threads
1,081,691
Messages
5,360,637
Members
400,591
Latest member
badgergurl

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top