Skip to main content
Filter by
Sorted by
Tagged with
1 vote
2 answers
97 views

I'm creating a simple (i think) table and just wanted to be able to input the data on one sheet, click a command button and automatically add a new row to a table with that data. Anyway I found a good ...
Owen Watkins's user avatar
2 votes
2 answers
98 views

I am trying to generate new files from master copy where each unique name, where it has only the policy numbers that belong to that name. A name can have many policy numbers. I can create the file ...
user30538220's user avatar
0 votes
1 answer
102 views

I created a macro that filters and formats an Excel file with a few thousand lines based on a fixed list of 10 errors (all contained in the same column), and it works just fine. I then decided to try ...
MrPulles's user avatar
9 votes
2 answers
2k views

I have a complex VBA project which I have used for ten or fifteen years with no issues. All of sudden, today it started to crash with a non-VBA error message. I am guessing this is referring to the ...
Ron Rosenfeld's user avatar
-5 votes
1 answer
125 views

I have a spreadsheet with multiple rows coming in with a variety of "RallyType" in column A. I want to move rows that for example: if column A Contains word "Presenters" then move ...
Grant's user avatar
  • 21
0 votes
2 answers
110 views

When I record a SAP Script on my computer, it is recorded in what it seems to be a "short" version of what I'm doing, not showing the fields names or anything like that. An example below: ...
Daniel Pires's user avatar
0 votes
0 answers
71 views

I've created a macro that works on any open .docx file. I'd like my VBA code to point a MS word macro to a directory and apply it the macro to all .docx files. Is there a snippet that I can put in the ...
bamGFX's user avatar
  • 19
0 votes
1 answer
63 views

As part of a customised VBA-based add-in, I've been trying to display the Icons task pane which idMSO is "IconInsertFromFile" (button type) but which doesn't work on macOS, although it runs ...
Catius's user avatar
  • 1
0 votes
0 answers
121 views

I have a ListView and a WebBrowser in my UserForm. The ListView contains all projects (1 project per row) from the Excel worksheet. As soon as I select a project in the ListView, the content of a cell ...
vbahuman's user avatar
1 vote
4 answers
133 views

I already have the code I need. I just need to apply this code in different columns and I'm not being able to do it that. Right now, I'm only able to apply it in one column. That's the code below: ...
Sullivan2021's user avatar
2 votes
1 answer
86 views

In Excel VBA, I'm trying to use NavigateArrow to iterate through all of the cells whose formulas are dependent certain cell. First, here's how I have the sheets set up: Sheet1, cell A1: I have a ...
Greg Lovern's user avatar
  • 1,067
2 votes
2 answers
71 views

Is there a way to create multi-color databar in cells based on values ? and add label on top of each cell ? Conditional formatting is complicated for this (even impossible ?). Do you think vba ...
ce.teuf's user avatar
  • 804
-2 votes
1 answer
166 views

Short version: Basically im writing a program that searches through 30,000 files on a semi-regular basis, and it would drastically narrow down the search if i could read the footer in the excel ...
Michael Serretta's user avatar
0 votes
0 answers
169 views

I designed an Excel tool that when cell X is selected, cell Y puts in a NOW() timestamp. I want a hidden cell to hold a live clock to calculate the time between the fixed stamped time and the live ...
user31412991's user avatar
0 votes
0 answers
124 views

I have created a huge VBA analysis code set (5000 lines+) that interrogates PLM (Aras, Windchill) design data to determine what division of a multi-divisional corporation created (owns) the part data. ...
Scott M's user avatar
  • 27
0 votes
0 answers
67 views

I needed that both DELETE SQL statements will be performed, or none of them. The tables are linked to SQL Server. I tried this: Private Sub onDelete_Click() On Error GoTo HandleErr ...
xralf's user avatar
  • 3,782
0 votes
0 answers
88 views

I am using Environ() to try to extract the R home path from environmental variables, however, it seems that Environ() only works with the lower section of the environment variables. My access is ...
Salvador's user avatar
  • 1,973
-2 votes
1 answer
83 views

I have a column in Excel that contains dates. Normally, I add a column next to it and use the formula =TEXT(A1,"MMM") to get the month abbreviation like “FEB”. How can I do the same with VBA ...
Shahd Basaleh's user avatar
0 votes
1 answer
133 views

I'm trying to automate a workflow with a macro, but I can't seem to get the PowerQuery table to update with VBA. Sub DepartmentalBudgetsMonthlyUpdate() Dim wb As Workbook Dim fName As String ...
Justin Parouty's user avatar
0 votes
1 answer
81 views

I am trying to have the up and down arrows change the value of a textbox in my userform when pressed. The userform looks like this and the code for it looks like this Option Explicit Private ...
eirikdaude's user avatar
  • 3,259
-3 votes
1 answer
119 views

Goal: I tried to write an Excel macro that synchronizes zoom and position in structurally identical worksheets to improve workflow. Input, Progress: The macro (see below) works, considers worksheets ...
manuel459's user avatar
  • 205
0 votes
1 answer
155 views

This is an Excel VBA problem I can't solve. I have a quite large and complex workbook, with many sheets. The main working sheet is named "Riassuntivo". In it, I create by code different ...
BennyB's user avatar
  • 21
0 votes
1 answer
131 views

When creating a recordset I get this error => 3061 To Few parameters, expected 2. How can I resolve this error? I have a union query and it runs fine: SELECT * FROM q_trip_usa UNION SELECT * FROM ...
LennyL's user avatar
  • 373
1 vote
2 answers
144 views

I have a problem with ScreenUpdating which I want to disabled. I have a power query connection which is refreshing. I connect excel files from folder in power query , after that I disabled background ...
dwqwer's user avatar
  • 11
0 votes
0 answers
148 views

I turned off all of the elements when opening Excel. It makes it look like an application. I have a button that opens a User Form. An apparent side-effect of that process is that the scroll bars ...
Greg Gregerson's user avatar
-2 votes
1 answer
110 views

I have a macro in an .xlsm file. This file is being called through a VBScript. After the VBScript runs the macro, it calls objWorkbook.Close False. VBA (in the workbook): ThisWorkbook.Worksheets(...
Poornima Ravi's user avatar
0 votes
1 answer
75 views

driver.get "https://www.ambito.com/contenidos/dolar.html" I want to stop loading after a determined amount of time or once I've got the elements that I need. I tried lots of things, but &...
Santos Lee's user avatar
0 votes
2 answers
107 views

I have an MS Access form for entering song performances. It looks up titles from a table. If the title isn't there, it asks if you want to add it. Private Sub SongTitle_NotInList(NewData As String, ...
doubleJ's user avatar
  • 1,234
0 votes
0 answers
78 views

I'm making a code in SolidWorks VBA that will automatically model revolved rectangles onto an imported conical solid body with an axis going up the middle. The revolves are placed on angled planes ...
FerryBoat's user avatar
1 vote
1 answer
96 views

I need an Excel conditional formatting formula or VBA to identify product names in a column to highlight cells red if the product name contains two or more sub-products (number+letter codes like r600, ...
Saad's user avatar
  • 13
0 votes
0 answers
46 views

Good evening, Wondering if I can get some help with some VBA code. In summary, I'm compiling multiple reports out of our ERP system into an overall summary table. However, as some of the information ...
Andy Mark Tingey's user avatar
1 vote
0 answers
122 views

I have a challenging issue with an XLSM file with some macros in a multi-user environment. In this file I have some macros, amongst others one when the file closes - it hides certain sheets, and one ...
Koen Rijnsent's user avatar
2 votes
2 answers
109 views

I have 30 Workbooks with X Sheets that I don't know the names of. I have a List of Workbooks like: Example1.xslx Example2.xslx Example3.xslx Each Workbook can have various Sheets with different ...
Andrea G.'s user avatar
2 votes
3 answers
116 views

I have this code for "Data 1" that I got from an AI ChatBot. I want it to average my values in column B based on if there are duplicate values in column D, and it does this. But now I want ...
Rae Van Sandt's user avatar
2 votes
1 answer
85 views

Is there a way in VBA to differentiate between a right mouse click and a selection change? My program goes to the Selection change event every time that I click the right mouse button. Please help I ...
Philippe Zivan Sussholz's user avatar
2 votes
3 answers
101 views

I need to transpose duplicate data in the below column of the selected cell by the number of data after the selected cell in a dynamic way. See pictures for example. This is payroll related and the ...
Ben's user avatar
  • 21
2 votes
3 answers
109 views

Please see input and output data in the image. The input table is multiple rows of data from the same subject but different timepoints. There are sometimes multiple data entries for the same subject ...
Rae Van Sandt's user avatar
3 votes
2 answers
121 views

Have a large data set. there are formulas in cells AX:BA Below is part of the code: 'Formats cells in column Range("AX:BA").NumberFormat = "$#,##0.00" 'sorts column BA ...
Stefan Brod's user avatar
0 votes
1 answer
84 views

The code snippet below is part of an Excel VBA Version 2507 (Build 19029.20208) procedure to create a PDF file from a worksheet range and create an email with the PDF as an attachment. The procedure ...
jmcsa3's user avatar
  • 1
0 votes
0 answers
81 views

I’m working on a VBA macro in SolidWorks 2025 to scan large assemblies (with many parts and subassemblies), find duplicate components based on a custom property (e.g., part number), keep one master, ...
AlFagera's user avatar
-3 votes
1 answer
121 views

I've been tasked with creating an automated Purchase Order form in Excel. I used an automated invoice tutorial as a place to start, substituting out "invoice number" for "purchase order ...
Sab's user avatar
  • 11
0 votes
1 answer
125 views

I'm trying to use VBA on Word 2013. I'm on Win10. I created a macro a long time ago to format documents to how I want them. But,now, when I click to run the macro, I get: "OBJECT VARIABLE OR ...
user avatar
3 votes
4 answers
190 views

I have dynamic value in cell and want to get if cell value not found in range then need to get next closest or nearest value that should be greater than cell value if not found using Excel VBA. For ...
Sidamallappa LIMBIKAI's user avatar
1 vote
0 answers
99 views

I'm trying to understand the official Microsoft VBA documentation for the LSet statement, specifically this warning in the example section: Due to the varying implementations of data structures among ...
OE Option Explicit's user avatar
2 votes
1 answer
105 views

I'm trying to use noMatch in Excel VBA code. I have a spreadsheet where a "PackNum" is compared to an Access recordset (query). When there is a match it inputs the data in Excel. When ...
Deke's user avatar
  • 597
0 votes
2 answers
110 views

I've read up on similar questions here and tried various suggestions, but cannot solve what I'm trying to do. I have an Excel worksheet that records dates in column A and other data in succeeding ...
Winston Smith's user avatar
1 vote
1 answer
141 views

(edited to clarify which macros I tried) I have an MS Word docx with tracked changes, and I'm trying to accept all track-changes deletions, while leaving tracked-changes insertions as they are (i.e., ...
Doug Ezra Morrison's user avatar
0 votes
1 answer
320 views

I have Excel 2024 (Microsoft LTSC MSO version 2408 build 16.0.17932.20496 64-bit), everything was working fine until a couple of days ago, then suddenly the Excel SolverCode module stopped working (...
MauroT's user avatar
  • 405
3 votes
1 answer
127 views

I want to give a "Timepoint" value (which I call a scanRank in the code below) to all the rows in this table based on "Subject ID". In this example, the first subject is already ...
Rae Van Sandt's user avatar
1 vote
1 answer
107 views

Further to my earlier question: AppActivate/SendKeys with Excel 365 I am finding that AppActivate/SendKeys runtime errors are not trappable with On Error GoTo... or On Error Resume Next. This code ...
Ronnie1001's user avatar