[Solved] How to use VBA in Google Sheets to highlight cells with special characters and uppercase letters?

I don’t think you need scripts. You could use conditional formatting. It seems the only reason you’re using VBA is because you need REGEX, which Microsoft excel doesn’t support except through VBA. Google Sheets however has REGEX support inbuilt. … highlights all Cells in Range C1 to E10000 which contain anything else than lowercase a–z, … Read more

[Solved] (GetElement)Clicking a button with no ID, TAG, NAME, CLASS, VALUE, SIBLINGS

OP here. Sorry for the terrible formatting of the question, it was the first time. To help others in the future….. This is what I did at first. It was my band aid fix. ie.document.getelementByID(“filtervalue”).select “SendKeys{ENTER}” This highlighted my input value and just pressed enter. If you are new to VBA and need something to … Read more

[Solved] Filter date to update pivot table daily [closed]

I can’t help myself… Base Data Used: Pivot Table Layout: Code Used: ‘ *** On Workbook Module *** Option Explicit Private Sub Workbook_Open() Call UpdatePivotTableDateToYesterday End Sub ‘ *** In Module 1 *** Option Explicit Sub UpdatePivotTableDateToYesterday() Sheet5.PivotTables(“PivotTable4”).PivotFields(“Date”).ClearAllFilters Sheet5.PivotTables(“PivotTable4”).PivotFields(“Date”).CurrentPage = Format(Date – 1, “m/d/yyyy”) End Sub 2 solved Filter date to update pivot table daily … Read more

[Solved] How to Shift an array circularly on VBA [closed]

Option Explicit Option Base 1 Sub shiftCircArray() Dim iInputArray(3) As Integer iInputArray(1) = 1 iInputArray(2) = 2 iInputArray(3) = 3 Dim iArray2() As Integer iArray2 = RotateArrayRight(iInputArray) End Sub Function RotateArrayRight(ArrayToRotate) Dim objNewArray() As Integer, iOldArrayPos As Integer, iNewArrayPos As Integer, iArrayLength As Integer Dim iPlacesToRotate As Integer ‘ Check that the array to be … Read more

[Solved] How to replace comma with space in text file using VBA [closed]

This should do the trick: Sub foo() Dim objFSO Const ForReading = 1 Const ForWriting = 2 Dim objTS ‘define a TextStream object Dim strContents As String Dim fileSpec As String fileSpec = “C:\Test.txt” ‘change the path to whatever yours ought to be Set objFSO = CreateObject(“Scripting.FileSystemObject”) Set objTS = objFSO.OpenTextFile(fileSpec, ForReading) Do While Not … Read more

[Solved] VBA – Match Lookup With Multiple Parameters

I got this question answered here by user Subodh Tiwari (Neeraj): https://www.experts-exchange.com/questions/29098511/VBA-VLOOKUP-With-Multiple-Parameters.html#acceptAnswerByMember Sample workbook is attached with the post in this link. Here is the complete code: Sub PlaceFormula() Dim ws As Worksheet Dim lr As Long Dim lc As Long With Application .Calculation = xlCalculationManual .ScreenUpdating = False .EnableEvents = False End With Set … Read more

[Solved] Excel VBA, code to count the # of filled cells, then find highest and 2nd highest and subtract the corresponding column #’s [closed]

I solved this by recording a macro that copys and pastes the data values into another section then I sorted it largest to smallest. I then created a column with the equation to subtract one from the other. solved Excel VBA, code to count the # of filled cells, then find highest and 2nd highest … Read more

[Solved] How to compare two Excel workbook, and if the data matches on both sheet, color code from second should automatically apply to first one [closed]

Try something like if workbooks(“First_workbook address”).sheet1.range(“A1”).value= workbooks(“second_workbook address”).sheet1.range(“C1”).value then workbooks(“First_workbook address”).sheet1.range(“A1”).colour = vbRed Endif solved How to compare two Excel workbook, and if the data matches on both sheet, color code from second should automatically apply to first one [closed]