Forum

Velouria
@debaser
Moderator
Member
Joined: Nov 1, 2018
Last seen: Jun 11, 2026
Topics: 0 / Replies: 841
Reply
RE: Want to activate corresponding row on the sheet from double clicking on the row in the listbox from my search results

Why do you have 8 different Case statements in ClearForm that do basically the same thing? A simple solution to your issue would be to add the...

4 years ago
Forum
Reply
RE: Automatically Create Slicers

Your workbook didn't attach...

4 years ago
Forum
Reply
RE: Automatically Create Slicers

This is still unnecessary: If slc.Name = strSlicerName Then Set slc = ActiveWorkbook.SlicerCaches(slc.Index): Exit For slc already is the slicer...

4 years ago
Forum
Reply
RE: Multiplying given value based on number of months

Date.Month(somedate) will return the month number to be used in your calculation.

4 years ago
Forum
Reply
RE: Is there anything like Min/Max for numbers in PQ

You could also do something like: Text.Start(<txt>, List.Max({0,Text.Length(<txt>)-1}))) Just bear in mind that you are likely ...

4 years ago
Forum
Reply
RE: Line Chart showing up as dots and not lines

What lines are you expecting to see? You appear to have three separate series with only one data point in each, so there are no lines to draw - that's...

4 years ago
Reply
RE: Automatically Create Slicers

Just a quick note re your other code: 1. Goto statements are generally best avoided (other than error handling). If you feel you need one, 99% of t...

4 years ago
Forum
Reply
RE: Automatically Create Slicers

That is the line where you needed the Set: Set myPTSettings.ObjRef = pto

4 years ago
Forum
Reply
RE: Vlookup the the total number from one tab to another

If you do need a formula, you can use SUMIF: =SUMIF(Sheet2!B:B,"Americas",Sheet2!C:C) for example.

4 years ago
Reply
RE: Automatically Create Slicers

It's an object variable so you need to use Set when assigning it. You should really declare it as a PivotTable in the UDT though rather than a generic...

4 years ago
Forum
Reply
RE: Automatically Create Slicers

You need to pass a pivot table object, not its name.

4 years ago
Forum
Reply
RE: Invalid Forward Reference

Hi Kathy, Glad it was useful to you. 🙂

4 years ago
Forum
Reply
RE: Macro to open file with password protecion

Not from personal experience, I'm afraid.

4 years ago
Forum
Reply
RE: Any ideas how to sort a table (.ListObjects(1)) by column 3, then by column 4?

You could shorten to: With ActiveWorkbook.ActiveSheet.ListObjects(1) .Range.Sort Key1:=.ListColumns(3), Key2:=.ListColumns(4), Header:=xlYes End Wi...

4 years ago
Forum
Reply
RE: Does anyone know what causes or restricts parameter prompts in VBA?

So nothing if you type Application.WorksheetFunction then a dot?

4 years ago
Forum
Page 24 / 57
0