The file name is: Master Technicians TABBED invoice.xlsmHi,
It looks you have another excel workbook open at the same time.
(without seeing the code or an example it is a guess)
But try:
If you're using windows as OS, use an ActiveX control to trigger the macro and see if you're problem is solved.
Hi, Belleke!
Are you sure you are not using an Irish version?Hi, Belleke!
Spanish version here.
Regards!
Hi, Eloise T!Are you sure you are not using an Irish version?
How do they look like, I never saw one500 € notes
Apparently the ?workbooks.Count "bumped" Excel in the correct rib to get it to allow the macro to work. Closing and reopening Excel didn't work for me.Hi, Eloise T!
The printing (? symbol) was just to elucidate how many workbooks you actually had opened. It's nothing required for running any macro. Another way of knowing how many workbooks opened do you have (more technically speaking, with or without VBA code) is to read the left pane Project - VBA Project of the Visual Basic Editor (Alt-F11). There you'll probably find more workbooks than what you opened manually as Excel opens other *.xl?? files depending on the components configuration that is set for your installation. You won't be able to open them, don't care about it, it's for your own security; you can check there which other user workbook code modules are still loaded. If any of them doesn't want to go away, simply close and reopen Excel, that should do the job.
Regards!
"When the Last Tree Is Cut Down, the Last Fish Eaten, and the Last Stream Poisoned, You Will Realize That" ... the earth is no more and it has been replaced with a new earth. Even if man decides to use nuclear weaponry, he will kill himself off before he has destroyed the last tree, fish, or polluted the last stream. God created a self-sustaining universe that will continue on, despite what man may do.Hi SirJB7
How do they look like, I never saw one
But believe me that in your case danger comes tied with a bit of common sense, so it could be worse.I know just enough about VBA to be dangerous to myself and everyone around me.
Moving from an Excel version to another one doesn't produce those changes. Excel store date & time as numbers, integer part for date and decimal part for time. Try putting =NOW() in a cell, let say A1, in B1 put =A1, now explicitly format A1 as date -any format- and B1 as General.BTW, all this recent VBA stuff stemmed from a computer crash. I had to take my Excel backups and cart them to a computer with Excel 2016. I was using Excel 2007 prior to the crash. When I started using Excel 2016, the dates took on a different format other than "mm/dd/yyyy"
Hi, Eloise T!"When the Last Tree Is Cut Down, the Last Fish Eaten, and the Last Stream Poisoned, You Will Realize That" ... the earth is no more and it has been replaced with a new earth. Even if man decides to use nuclear weaponry, he will kill himself off before he has destroyed the last tree, fish, or polluted the last stream. God created a self-sustaining universe that will continue on, despite what man may do.
And once again, you were right on the money.Hi, Eloise T!
I absolutely agree with this:
But believe me that in your case danger comes tied with a bit of common sense, so it could be worse.
Now this is weird:
Moving from an Excel version to another one doesn't produce those changes. Excel store date & time as numbers, integer part for date and decimal part for time. Try putting =NOW() in a cell, let say A1, in B1 put =A1, now explicitly format A1 as date -any format- and B1 as General.
I said explicitly because Excel uses different default format for dates, depending on how they're entered in cells. If you enter it in the form without the year, it assumes actual year and it formats as mmm-dd or dd-mmm, depending on your Windows options at Regional Settings and Number Configuration. But if you enter it specifying the year, it formats as dd/mm/yyyy or mm/dd/yyyy, depending on the same criteria.
Briefly, you were previously using a machine with a date regional config settings of mm/dd/yyyy and you moved on to a new machine with a different one. You can check this at Start, Control Panel, Clock Language and Region, Regional Configuration and Language, Change Date Time Number Format.
Regards!
Hi, Eloise T!
I absolutely agree with this:
But believe me that in your case danger comes tied with a bit of common sense, so it could be worse.
Now this is weird:
Moving from an Excel version to another one doesn't produce those changes. Excel store date & time as numbers, integer part for date and decimal part for time. Try putting =NOW() in a cell, let say A1, in B1 put =A1, now explicitly format A1 as date -any format- and B1 as General.
I said explicitly because Excel uses different default format for dates, depending on how they're entered in cells. If you enter it in the form without the year, it assumes actual year and it formats as mmm-dd or dd-mmm, depending on your Windows options at Regional Settings and Number Configuration. But if you enter it specifying the year, it formats as dd/mm/yyyy or mm/dd/yyyy, depending on the same criteria.
Briefly, you were previously using a machine with a date regional config settings of mm/dd/yyyy and you moved on to a new machine with a different one. You can check this at Start, Control Panel, Clock Language and Region, Regional Configuration and Language, Change Date Time Number Format.
Regards!
Just FYI, on my version of Windows 7, it was: Control Panel, Region and Language, Formats tab, Short Date.Hi, Eloise T!
I absolutely agree with this:
But believe me that in your case danger comes tied with a bit of common sense, so it could be worse.
Now this is weird:
Moving from an Excel version to another one doesn't produce those changes. Excel store date & time as numbers, integer part for date and decimal part for time. Try putting =NOW() in a cell, let say A1, in B1 put =A1, now explicitly format A1 as date -any format- and B1 as General.
I said explicitly because Excel uses different default format for dates, depending on how they're entered in cells. If you enter it in the form without the year, it assumes actual year and it formats as mmm-dd or dd-mmm, depending on your Windows options at Regional Settings and Number Configuration. But if you enter it specifying the year, it formats as dd/mm/yyyy or mm/dd/yyyy, depending on the same criteria.
Briefly, you were previously using a machine with a date regional config settings of mm/dd/yyyy and you moved on to a new machine with a different one. You can check this at Start, Control Panel, Clock Language and Region, Regional Configuration and Language, Change Date Time Number Format.
Regards!
If you change that to mm/dd/yyyy you shouldn't need my code. But, I always recommend to explicitly format date and number columns, to avoid this issues. If in your computer looks fine, you don't know how will it look when you send the file to another person.And once again, you were right on the money.
The "new" computer was set for m/d/yyyy
Displaying no. of opened workbooks doesn't make any kind of magic, it was just for testing how many opened workbooks you had at that very moment, since I tend to not believe in users.For some reason, using "?workbooks.Count" doesn't work every time. I'm still experimenting...
Thanks, I had no machine with English OS at a hand so tried to guess from my Spanish LA one.Just FYI, on my version of Windows 7, it was: Control Panel, Region and Language, Formats tab, Short Date.
I put "?workbooks.Count" and it responded back with 1
The macro behaved itself and allowed me to run it.
Is that a permanent fix or will I be required to put "?workbooks.Count" each time that happens?
THANK YOU again.