Comment by PeterT on VBA .FindNext Not finding nextfind
If you're using arrays and found that to be slow (no surprise), try using one or more Dictionary. After initially building the dictionary once, lookups are immediate (no looping at all).
View ArticleComment by PeterT on Condition based on time in a cell
Why are you ignoring errors and what error do you get if you On Error Goto 0?
View ArticleComment by PeterT on VBA Copying Issue
As an alternative to copy/paste, you could try a simple assignment of values (since you're not looking to copy formatting): targetSheet.Range(strtargetRange) = sourceSheet.Range(strsourceRange)
View ArticleComment by PeterT on For Loop that adds a TEXTAFTER Formula to Range
Can you post a list of possible strings that your CNT_SYMBOLS function would parse and what your expected value should be?
View ArticleComment by PeterT on Excel not responding alert and slow processing
What is the code for Date_Yes1? The easy guess is the problem is there
View ArticleComment by PeterT on Multiple user forms into one column
The Worksheet_Change event sub must be associated with a specific worksheet - so it must be in the code module for that worksheet. In other words, I suspect that your Worksheet_Change code is in a...
View ArticleComment by PeterT on How to determine the number of cells needed for a...
Try Debug.Print Sheet1.Cells(Sheet1.Rows.Count, 1).End(xlUp).Row
View ArticleComment by PeterT on How to delete rich text by tag
Yes there is a way to do this. But it's highly dependent on your document and the content and how you want the macro to be started, etc. This is not a code writing service, so we can help if you show...
View ArticleComment by PeterT on Cut the Email address(es) from within body of email text...
Try looking at this site for some help
View ArticleComment by PeterT on Export JSON to excel file
Have you built a JSON file by hand with sample values and does it export correctly? And then, have you compared the JSON generated by your code to the sample JSON to find the differences?
View ArticleComment by PeterT on formatting formula Highlight all cells in a column of...
Do you need to know which phrase(s) from Column B is matching Column A?
View ArticleComment by PeterT on My VBA code works line by line but not when it is run
Try pasting the range into the Word editor instead and see how that works.
View ArticleComment by PeterT on Presentation corrupted after creating in VBA?
Try creating a VERY scaled down version of your code to create a Powerpoint with minimal content and save it. See if that works. Then slowly add your other content, perhaps one slide at a time, and see...
View ArticleAnswer by PeterT for Excel VBA Run Time error the second times
I think it's likely that MS Word is already running. So here are a couple of routines from my library to check if MS Word is already running or not, and to make a connection to the process.Option...
View ArticleAnswer by PeterT for Filtering based on a range of names from a different sheet
You must construct an array of your names from the values in Column U. This example will hopefully give you a start.Option ExplicitSub FilterForNames() Dim categories As Range Dim categoryList As...
View ArticleAnswer by PeterT for Macro update for VBA PPT to fit contents of a slide to a...
NOTE: code below serves as an example, as it cannot be tested given the information in your post. Please adapt it to your situation as needed.I've included several (hopefully) helpful additions to your...
View ArticleAnswer by PeterT for xlookup on filtered range
I've never been able to get the XLOOKUP working in the same way as the formula when you have multiple criteria, as in your case.My own implementation doesn't have to filter the range at all, just look...
View ArticleAnswer by PeterT for Is there a way to get the column indexes from VBA...
This might get unwieldy if you have large areas, but the example code below will extract unique column numbers from a range. The range in the example has multiple areas joined with Union and captures...
View ArticleAnswer by PeterT for How to delete VBA watermark on all slide?
The key here is understanding that there is no "watermark" feature in PowerPoint, as there is in MS Word. The code you've used correctly adds a shape to each slide that can be used as a watermark (from...
View ArticleAnswer by PeterT for Group rows by value over more than one sheet
This can be easily done by adding a parameter to the sub code from Chris Neilsen:Sub demo(ByRef ws As Worksheet) Dim r As Range Dim v As Variant Dim i As Long, j As Long With ws On Error Resume Next'...
View Article
More Pages to Explore .....