Forum

Velouria
@debaser
Moderator
Member
Joined: Nov 1, 2018
Last seen: Jun 12, 2026
Topics: 0 / Replies: 841
Reply
RE: MS-Excel VBA | Assign Values to Array, Sort, and Write Values to Cells

What I mean is that it will only cause a problem if you terminate your code early (eg an error occurs and you press End rather than debug). In cases l...

5 years ago
Forum
Reply
RE: MS-Excel VBA | Assign Values to Array, Sort, and Write Values to Cells

It is not actually necessary to reset Screenupdating to True, unless you specifically need to force a screen redraw at some point within your code. Th...

5 years ago
Forum
Reply
RE: Set variable values across module

Personally, I'd suggest a module with functions (or property procedures) that return the relevant values. For object variables, you'd use a Static var...

5 years ago
Forum
Reply
RE: Creating a single line chart from 3 datasets

Is this the kind of thing you had in mind? It's just a pivot chart with the dates grouped by year and day, then the value field set to show as a ru...

5 years ago
Reply
RE: Very Challenging - Adding sequential string to CSV values in a single cell. Please Help.

There is a Thanks button at the top right of each post (other than your own!):

5 years ago
Reply
RE: What am I doing wrong with this code? lastrow

I would also recommend using a variable so you only need to alter it in one place: Private Sub CommandButton1_Click() Dim RT_Line_Code As S...

5 years ago
Forum
Reply
RE: What am I doing wrong with this code? lastrow

Judging by the picture, your worksheet is called "CODE v2" - note the space in the middle.

5 years ago
Forum
Reply
RE: Very Challenging - Adding sequential string to CSV values in a single cell. Please Help.

Just as an alternative, you could also do it as a UDF: Function AddSKU(CellText As String, SKU_text As String) As String Const DELIMITER As String ...

5 years ago
Reply
RE: Using command button to run macro

The copy line should only copy unfiltered rows anyway, but if you need to specify it, use: wsCopy.Range("A2:D" & lCopyLastRow).Specialcell...

5 years ago
Forum
Reply
RE: Using command button to run macro

Assuming you assigned it to the form button correctly, put a breakpoint at the start of the code then click the button and step through the code check...

5 years ago
Forum
Reply
RE: Option Buttons on Worksheet

I would advise against using activex controls unless they have a particular functionality you need, but to address your question specifically: optionb...

5 years ago
Reply
RE: Using command button to run macro

It would be a lot easier to comment on code that we can see, but the most likely cause would be that, since you're using a commandbutton and not a For...

5 years ago
Forum
Reply
RE: Pass Named Range to VBA Function

RangeMortality.Item(1, 1).Value and RangeMortality(1, 1).Value are the same, as indeed are RangeMortality.Cells.Item(1, 1).Value and RangeMortal...

5 years ago
Forum
Reply
RE: Change shape color based on another cell value

The formula goes in a cell, not in the shape.

5 years ago
Forum
Reply
RE: Change shape color based on another cell value

The function code must be in a normal module, not a worksheet or ThisWorkbook module.

5 years ago
Forum
Page 41 / 57
0