Addin Issue Creating an N when opening a workbook on the Sheet

mayoung

Active Member
Joined
Mar 26, 2014
Messages
257
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
I have been using an addin I created for some time. Recently I have noticed when I open an excel workbook and the addin opens it adds the letter N randomly onto the excel worksheet I have opened and its never to the same cell. If I uncheck the addin and close my workbook and reopen it this no longer happens. I thought maybe the addin workbook got corrupted so I open another workbook and moved all the modules over to it and resaved it as my addin. Then I moved my xml code using the ribbon editor. The letter N still appears randomly. Can anyone offer any suggestions??
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Sorry that was a different XLAM. I can't replicate the issue you are having and I can't see anything in the code that could cause it.
(PS: I had to modify Module120 to make it work on my 64 bit installation)

Is there any chance that you have other Personal Macros or Add-Ins running that might be interacting with this one ?
If you have maybe disable them and leave this one turned on to see if it is actually the combination that is causing the issue rather than this one on its own.
 
Upvote 0
Sorry that was a different XLAM. I can't replicate the issue you are having and I can't see anything in the code that could cause it.
(PS: I had to modify Module120 to make it work on my 64 bit installation)

Is there any chance that you have other Personal Macros or Add-Ins running that might be interacting with this one ?
If you have maybe disable them and leave this one turned on to see if it is actually the combination that is causing the issue rather than this one on its own.
That is the only addin I have checked off that should be running. Kinda of strange what it is doing.
 
Upvote 0
I had to modify Module120 to make it work on my 64 bit installation
Regarding the above. I added the word PtrSafe to the following in Module120

VBA Code:
' API declarations:
Private Declare PtrSafe Function GetVersionEx Lib "Kernel32" _
                                      Alias "GetVersionExA" _
                                      (lpVersionInformation As OSVERSIONINFO) As Long

Private Declare PtrSafe Sub keybd_event Lib "user32" _
                                (ByVal bVk As Byte, _
                                 ByVal bScan As Byte, _
                                 ByVal dwflags As Long, ByVal dwExtraInfo As Long)

Private Declare PtrSafe Function GetKeyboardState Lib "user32" _
                                          (pbKeyState As Byte) As Long

Private Declare PtrSafe Function SetKeyboardState Lib "user32" _
                                          (lppbKeyState As Byte) As Long
 
Upvote 0

Forum statistics

Threads
1,215,580
Messages
6,125,652
Members
449,245
Latest member
PatrickL

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