anniversery update

shamsu203

Board Regular
Joined
Jun 12, 2014
Messages
83
Office Version
  1. 365
Platform
  1. Windows
Hi
I have various properties let out to various tenets . The tenancy are of various periods eg some may be 1 year or others may be 3 ,5, 10 years when date the rent increase may be yearly or every 2 or 4 years from the start of the contract. Is it possible to have an excel spreadsheet to show the monthly rent and also the date and amount of the increase rent on the annversery date..
 
Re: annversery update

Not the name of the function, but rather the module.
They usually have named like Sheet1, ThisWorkbook, Module1, Module2, etc unless you physically changed the default name of your module.
The reason why I am asking is because if you place it in the wrong module (i.e. one of the Sheet modules) and try to access it from another sheet, it won't work and you will get the error you are describing.

What that error is telling you is that it cannot find any function with that name which means one of three things:
- you placed it in the wrong area
- you mis-typed the function name somewhere (either in VBA or on the sheet, so there isn't an exact match)
- Macros/VBA are not enabled on your workbook
Hi.
The module no is 12 I have enabled macros and now get the message cannot run visual basic macro because of syntax error. Pls let me know what I have done wrong
Tks
 
Upvote 0

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Re: annversery update

What version of Excel are you using?
Is it for Windows or Mac?
 
Upvote 0
Re: annversery update

I have Office 365 at home, and just confirmed that it works for me.
I suspect that you may not have all the proper VBA Libraries selected.

From the VB Editor, go to Tools -> References, and note which libraries are selected. You should have the following ones selected:
- Visual Basic for Applications
- Microsoft Excel 16.0 Object Library
- OLE Automation
- Microsoft Office 16.0 Object Library

If all 4 of those are not selected, find them on the list, and select them.

Does that resolve the problem? If not continue on with the following:
now get the message cannot run visual basic macro because of syntax error.
Does it give you a "Debug" option with that error message?
If so, click and it should highlight the line of code it is having trouble with. Let us know what that line of code is.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,185
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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