![]() |
VBA Code Not Working
Hi. I am trying to find the flaw in my code. I've been staring at it for some time, and can't seem to figure it out. I am working with a spread sheet that someone else created. I am wondering if there is an excel quirk I am unaware of or if I am just missing my mistake. I am new to excel and vba.
Below is my code. I am getting 17 for a when I should be getting 18, but the total for all combined is correct. One of the 'a' values is being counted for misc. Code:
Private Sub CommandButton1_Click() |
Quote:
Hi, It might be easier to start by telling us what this code is trying to achieve. There just might be a better way Educo |
I am not sure this is the right place to post my question but I give it a shot.
I have programmed my computer to turn on at 7am every morning, then using windows Scheduled Tasks, I am opening an excel workbook at 7:05 am. The workbook is programmed to run a vba code on opening. When I wake up around 7:30 am, I am checking what is happening. I am always surprised to see that the code stops running at one moment I am retrieving data from the web, and it is not always the same stage. I am 110 sure this is not coming from the VBA code, as when I run it manually i.e. opening myself the workbook by clicking on it, it works perfectly well. I am wondering if it does not come from windows or the Scheduled Task software. Does someone has any idea from where it could come and how to solve this issue ? Thank you very much for your help. |
Quote:
Do you put those letter at column B manually or does those base some calculation ? If there is any spaces before or after those "a"-marks they are counted as misc at your code. |
All times are GMT +1. The time now is 08:13 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com