Compile Error: Invalid Outside Proceedure

Tenbapps

New Member
Joined
Aug 6, 2011
Messages
19
Office Version
  1. 365
Platform
  1. Windows
Hello,

Having an odd issue with my spreadsheet which you can see below. I'm a travelling sales rep, just started working at the company and I'm arranging all the info in my own way.

This sheet is to show me the accounts I visit and the date that I last visited them. I made the column headers into buttons, so that when you press them it will sort the accounts alphabetically or show the order of the last visit I made to them.

spreadsheetmain.jpg


These are the macros:

spreadsheetmacros.jpg


Very simple and until 3 days ago, they worked fine and now whenever I press the buttons I get this:

spreadsheeterror1.jpg


When I click "OK" I get this:

spreadsheeterror2.jpg


As you can see, it highlights the Hypoid sheet for some reason as where the error is. Thing is the macros have nothing with any other sheet than the one they're in!

Any ideas please?!
 

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.
Right click the Hypoid sheet's tab, select View Code, delete the extraneous letter t that has found its way in there then press ALT + Q to close the code window.
 
Upvote 0

Forum statistics

Threads
1,224,560
Messages
6,179,520
Members
452,922
Latest member
nstaab07

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