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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

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,237
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,575

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,237
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,575
I was wrong. It is late here and I'm going to bed. :)
 

Michael M

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

Watch MrExcel Video

Forum statistics

Threads
1,108,599
Messages
5,523,815
Members
409,537
Latest member
AlfredSiauw

This Week's Hot Topics

Top