Forum

Velouria
@debaser
Moderator
Member
Joined: Nov 1, 2018
Last seen: May 22, 2025
Topics: 0 / Replies: 838
Reply
RE: Use name manager name as sheet password

It works for me but your message box is misleading since it relies on the ProtectContents property, which you set to False in your protection.

3 years ago
Forum
Reply
RE: Retrieve filter value of a specific field

You could use a function to get the status (this will return "All" if no filter is set): Function GetStatusFilterStatus() Dim tbl As ListObjec...

3 years ago
Forum
Reply
RE: Use name manager name as sheet password

That code works fine here. Just as a side note, there is no need to compare a boolean to a boolean to get the same boolean, so you can just use If ...

3 years ago
Forum
Reply
RE: How to run macro between a time range in VBA

As long as you open Excel before 9AM, you can use Application.Ontime to schedule the macro running.

3 years ago
Forum
Reply
RE: IFS Help

Your Amber section is actually wrong, as is the Red. You need: =IFS(C314>=90, "GREEN",C314>=80,"AMBER",C314>=1,"RED") though ...

3 years ago
Reply
RE: Select First Slicer Item

Ah, OK. You're using an OLAP data source (the data model) so you need to do this differently. In fact it's a little simpler as you don't need to loop,...

3 years ago
Forum
Reply
RE: Select First Slicer Item

There's nothing syntactically wrong with the code that I can see, and it works fine here in some quick tests. Any chance you can post a workbook where...

3 years ago
Forum
Reply
RE: Prevent row and column insert and delete and prevent clear contents

Unless your formulas use INDIRECT, they will adjust automatically if rows/columns are inserted, so I'm not really sure why you need to do this at all?

3 years ago
Forum
Reply
RE: VBA to select first item in a slicer causes Invalid procedure call or argument

More importantly, there is a difference between a SlicerCache and a Slicer. The SlicerCache name is "Slicer_" and the name of the Source field (I d...

3 years ago
Forum
Reply
RE: VBA to select first item in a slicer causes Invalid procedure call or argument

That error means that there isn't a slicer cache with the name specified. Usually they start with "Slicer_" by default

3 years ago
Forum
Reply
RE: Auto Send filtered pivot table in outlook email body

You should be able to use Ron's RangeToHTML function

3 years ago
Forum
Reply
RE: VBA to position and format slicers

CrossFilterType and SortItems should both be Long not Single. .SortItems = xlSlicerCrossFilterHideButtonsWithNoData is not a valid value for So...

3 years ago
Forum
Reply
RE: VBA to position and format slicers

So to clarify, you would need: Sub FormatSlicer(SlicerName As String, SlicerFormat As SlicerFormatSettings) Dim theSlicer As Slicer Set the...

3 years ago
Forum
Reply
RE: ExpandTableColumn with type text

Assuming the format is consistent, you could also use Number.ToText([Header.partnb],"F3")

3 years ago
Forum
Reply
RE: VBA to position and format slicers

Thanks Catalin - I didn’t read closely enough!

3 years ago
Forum
Page 26 / 56