MsgBox Error

jreed5535

New Member
Joined
Jul 25, 2020
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Hi Guys,

I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2.
1595988608802.png



The only difference is the MsgBox goes into capitals
1595988719903.png


1595988788418.png


any ideas why this is happening?

Cheers
 

Some videos you may like

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.

jreed5535

New Member
Joined
Jul 25, 2020
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Thanks for the reply Logit, same error coming up though.
1595990335833.png
 

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
19,253
Office Version
  1. 2013
Platform
  1. Windows
You Haven't at some point, created another macro called MSGBOX have you ??
 

Logit

Well-known Member
Joined
Aug 31, 2016
Messages
3,576

ADVERTISEMENT

You can have vbQuestion or vbYesNo but not both.
 

jreed5535

New Member
Joined
Jul 25, 2020
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Ah! didn't even thanks of that Micheal, yes i did, have changed the name and works fine now. Thanks for your help guys.
 

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
19,253
Office Version
  1. 2013
Platform
  1. Windows

ADVERTISEMENT

@Logit
You sure about that
VBYesNo.png
 

Logit

Well-known Member
Joined
Aug 31, 2016
Messages
3,576
I was wrong. It is late here and I'm going to bed. :)
 

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
19,253
Office Version
  1. 2013
Platform
  1. Windows
More coffee will fix it.....:cool:
 

Watch MrExcel Video

Forum statistics

Threads
1,108,940
Messages
5,525,752
Members
409,664
Latest member
translatedotpink

This Week's Hot Topics

Top