Search results

  1. S

    Failsafe ways to open Access and run a macro and close

    For a visual to accompany the Doc Man's explanation in post #9, here are some screen shots from task manager and MS-Access for a scheduled task that I run.
  2. S

    Solved Timing or other issue when closing Excel from Access

    It was a careless oversight on my part when I added the If statement logic to test for whether to keep excel open. Probably did ctrl+x rather than ctrl+c when pasting into the Else.
  3. S

    Solved Timing or other issue when closing Excel from Access

    Thanks for the various suggestions. I thought things were working when I left on Friday, however today, any variation of the code still presented issues. After a bit more searching, today, I think I discovered why the original code had worked fine until last week and seemed to work on Friday...
  4. S

    Solved Timing or other issue when closing Excel from Access

    So is okay the way the code is then?
  5. S

    Solved Timing or other issue when closing Excel from Access

    Made some changes and added the Close statement. The timing issue seems to have moved up the chain... ...was able to get rid of the message box, however had to repeat the Set Statement to avoid an error on wb.Activate, probably also relating to the timing since the second one doesn't generate...
  6. S

    Solved Timing or other issue when closing Excel from Access

    I thought this code was working properly, however, yesterday noticed that the excel file was showing as locked and excel wasn't open (from the perspective of the taskbar not having an underline below the icon). When I went into Task Manager, Excel was there under Background Processes. I think...
  7. S

    Import csv to excel to access table

    Here is an example of using SQL to append data from excel and specify the row number. If you are doing a make table or other type of query, change the sql statement as needed. stfilename is a variable for the file name (can hard code if you prefer) DOCS$A is the sheet/tab name along with the...
  8. S

    Solved Pivot Table Summary Count minus Total Count

    Even so, your technique is an improvement to what I started with by trying to put a formula in each cell separate from the actual pivot table.
  9. S

    Solved Pivot Table Summary Count minus Total Count

    After a bit more web searching found out how to see the formula. Apparently I misidentified the part in your explanation about where the drop down box is and that is why couldn't see or edit the formula. The video below showed the steps you wrote about in post #11 and once the drop down box is...
  10. S

    Solved Pivot Table Summary Count minus Total Count

    Thanks, I thought I tried looking at the calculated field and it only had the option to add not view or edit existing. Maybe missed a step? Found the formula by clicking on List Formulas. It ended up adding a new tab to the spreadsheet with the information. Seems a bit odd rather than being...
  11. S

    Solved Pivot Table Summary Count minus Total Count

    Yes, I understood there was a calculated field involved. I haven't used Pivot tables much so not familiar with all its capabilities. My question was how did you create the calculated field in the pivot. I see in the detail there is a formula that counts up the cols =CountA(I2:M2) and a simple...
  12. S

    Solved Pivot Table Summary Count minus Total Count

    I see that you added two cols to the data tab. Tried recreating in my local file by adding the two cols and adjusting the Change PivotTable Data Source Range to include col A through Col O. Not sure how the formula or calculation was performed on the pivot under label Sum of Weekly Total (col H)
  13. S

    Solved Pivot Table Summary Count minus Total Count

    Since you mentioned the file does not match the image, I downloaded the zip I posted and the file looks fine to me, not sure what changed when you opened it. Have attached screen shot from that summary page. Perhaps I didn't explain the issue well? The data in the pivot from Col A through...
  14. S

    Solved Pivot Table Summary Count minus Total Count

    Here is a sample. Cleared out data that is not needed for summary rather than obfuscating. Truncated lead and discipline.
  15. S

    Solved Pivot Table Summary Count minus Total Count

    Have exported access query data to excel. Created a pivot table to count up by Person. Was asked to add cols for days of week and provide count per day along with a col at the end that is the sum of the daily counts minus the original total count. I looked at a few examples on various sites...
  16. S

    **Harnessing the Power of Regular Expressions in Google Docs**

    Yes, you can use the Find and Replace dialog box within word (ctrl+H) and do regex type find and replace. No need for vba or macros. Here is an intro to the steps with screen shot https://medium.com/@xjb/regular-expressions-ms-words-find-and-replace-feature-3f132331f5b0
  17. S

    Refine a working regex exclude periods or dots except if a decimal

    Thanks all. As the files are being downloaded by month and year I was randomly selecting and opening files to view the data and for a while, things seemed to fit a particular pattern, then it changed. Now am scanning random files after each download. Have made a few adjustments to the regex...
  18. S

    Refine a working regex exclude periods or dots except if a decimal

    Thank you Eberhard. Appreciate it. Seems to work with my test document. I tried with another file and looks like will have to play around with the pattern a bit more as am discovering additional variations and even cases without the keyword MP or CP. I imagine for those, will have to do...
  19. S

    Refine a working regex exclude periods or dots except if a decimal

    Pulling data out of many historical documents. Put together this regex pattern and has been working fine. Unfortunately, the latest batch has a slightly different format. I modified the pattern, however, would like to know if it could be refined to maintain the original output format of previous...
  20. S

    Run Excel Trim Function from Access

    Couple more variations on the trim and remove spaces functions using Access vba. Examples: ? removespaces("1234 567 89") 123456789 ? removeextraspaces("1234 567 89") 1234 567 89 ? trimall(" 1234 567 89 ") 1234 567 89 ...
Back
Top Bottom