Skip to main content
0 votes
1 answer
44 views

here is my code... i have data in sheet2 with 5 columns. I would like to sorting with E column. Following code working properly, but some times it is throwing 1004 error (Method range of object ...
Raja V's user avatar
  • 11
2 votes
2 answers
78 views

I've been using the built-in Format() function successfully in Excel VBA for years. However, I have just come across a situation that would appear to be a bug. When the input value is Empty (Variant), ...
Nick C's user avatar
  • 41
Advice
0 votes
20 replies
270 views

I have this code that works great except for when the end of the week comes up I have to change 8 to 15 or vise versa in order to get to the correct workbook. Is there another way? This code is to ...
Rose 's user avatar
0 votes
0 answers
143 views

I'm currently struggling on an assignment (probability class) which require creating a function (VBA excel) that contains a variable number of sums one inside the other based on a parameter. I'm not ...
Victor's user avatar
  • 1
1 vote
2 answers
107 views

I have a problem in making a search for a range of dates with VBA. Using the start date as the default search in the date range and when find the same date start to count (x) in the range between the ...
A Mu's user avatar
  • 23
-1 votes
1 answer
90 views

I am working on pulling information from a table into a Check In & Out form. We will be cataloging helmets using barcodes. With the way I have the form set up, scanning a barcode will ...
Tiffani-Michelle Schmidt's user avatar
0 votes
1 answer
102 views

i have excel sheet with 5 columns. i used following code for sorting. it works fine lrow As Long lrow = Application.WorksheetFunction.CountA(Sheet2.Range("A:A")) Sheet2.Range("A3:E&...
Raja V's user avatar
  • 11
1 vote
0 answers
72 views

I have this code: Private WithEvents App As Word.Application Private Sub Document_Open() Set App = Word.Application End Sub Private Sub Document_New() Set App = Word.Application End Sub ...
Wei-ying Chen's user avatar
Advice
0 votes
3 replies
77 views

I am adding new sheets to a workbook using the value of a column. In the column there are duplicate values. I want to skip a duplicate value in my loop.
Steve Dyke's user avatar
0 votes
1 answer
96 views

I would like to make a VBA macro for Word 2021 that will insert an IF field with STYLEREF fields inside it, to show the beginning and ending paragraph numbers in a page header. I am able to insert the ...
JimH44's user avatar
  • 532
Best practices
0 votes
2 replies
118 views

I'm quite frustrated trying to write to a binary file in Excel VBA. The issue is with fixed-length string data in a Type structure. (Note that my binary file requirements are that fixed-length string ...
Dave Clark's user avatar
0 votes
1 answer
114 views

I have the following VBA code, but one line is giving an error: rng(i, 4).Formula = "=IF(LEFT(A" & (i + 1) & ",2)="RN","RN",IF(LEFT(A" & (i + 1) &...
Davey Brankaert's user avatar
-4 votes
1 answer
106 views

Someone can tell me what is wrong with my code? When I click on the btn_prelrep button, I want to get information from equipment input control, that information is concatenated with the path of a file ...
samnick liboum's user avatar
0 votes
1 answer
173 views

I have Power Query table in an Excel spreadsheet that filters a different table for a specific Index number using a List Box of Client Names. The first table has 3 columns: Index Attribute Value 1 ...
Brian Schmitz's user avatar
2 votes
3 answers
196 views

This Excel VBA code is supposed to copy the entries from Sheet "Entry" then Insert & Paste only Values in Sheet "List". Sheet List has a password to prevent editing. Sub ...
David's user avatar
  • 39

15 30 50 per page
1
2 3 4 5
14434