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
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

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
21,273
Office Version
  1. 365
  2. 2007
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
4,393

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
21,273
Office Version
  1. 365
  2. 2007
Platform
  1. Windows

ADVERTISEMENT

@Logit
You sure about that
VBYesNo.png
 

Logit

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

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
21,273
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
More coffee will fix it.....:cool:
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,487
Messages
5,831,975
Members
430,099
Latest member
rdhoy

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
Top