Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
83 views

I’m trying to find the addresses of all the top-level rows in hierarchies to apply conditional formatting to the pivot table. It seems that using the method below, I can only extract the definitions ...
Waqar's user avatar
  • 636
0 votes
1 answer
219 views

My issue is based on Excel's new Automate/Code Editor feature. I am trying to copy a filtered range from one sheet to another by using the getLastRow() function to determine the range of the filtered ...
Mavelus Foo's user avatar
0 votes
0 answers
86 views

I am trying to open the Microsoft edge using internet explorer automations controller using the below code. Here is the sub routine: Sub OpenURL(ByVal SURL As String) Dim OIE As Object Dim ...
James Bond's user avatar
0 votes
1 answer
67 views

I'm trying to build easy to use functions that can be applied to excel sheets on top of openpyxl. But what I noticed is that anytime I apply formatting to a cell, any previous formatting is reverted. ...
dcoolwater0502's user avatar
0 votes
1 answer
128 views

As I mentioned elsewhere, I'm writing a program to extract and reconstitute Excel files. Until a few days ago, everything was fine, but suddenly Excel started throwing exceptions when it never did. ...
Paulo Santos's user avatar
  • 11.7k
0 votes
1 answer
104 views

I created a simple tool that extracts an Excel file into a folder and, conversely, gets this folder and regenerates the Excel file. This tool also extracts the VBA code to text files in order to make ...
Paulo Santos's user avatar
  • 11.7k
0 votes
2 answers
899 views

I have an Excel workbook consisting of 60+ Worksheets. In the main worksheet, I want to use the XLOOKUP to find and return the value of what I'm looking up. The VLOOKUP function will not work in this ...
VBAnoobs's user avatar
0 votes
1 answer
65 views

I am trying to query data from the website listed below in VBA. The query is resulting in a 1004 error--Application-defined or object-defined error. This is the website: https://www.troa.net/tis/?...
Koda's user avatar
  • 177
0 votes
2 answers
180 views

My Excel workbook not closed by executing the highlighted last statement.But throws the error as below.. My code.... import win32com.client as win32 excel = win32.gencache.EnsureDispatch('Excel....
Joseph Stalin Pillai's user avatar
1 vote
0 answers
122 views

https://learn.microsoft.com/en-us/previous-versions/office/developer/office-2007/bb404903(v=office.12)?redirectedfrom=MSDN Microsoft provides example codes in C# and Visual Basic. For example C# code ...
Ǵabıt Tólendıev's user avatar
0 votes
1 answer
162 views

Imports System Imports System.IO Imports Microsoft.VisualBasic.FileIO Imports Microsoft.Office.Interop Module Program Dim oxl As Excel.Application Dim owbs As Excel.Workbooks Dim owb As ...
Joy G's user avatar
  • 49
0 votes
0 answers
384 views

Imports System Imports System.IO Imports Microsoft.VisualBasic.FileIO Imports Microsoft.Office.Interop Module Program Dim oxl As Excel.Application Dim owbs As Excel.Workbooks Dim owb As ...
Joy G's user avatar
  • 49
1 vote
1 answer
434 views

I am trying to access the cell A7 of an excel file which has only one excel sheet. However i am getting the following error Public member 'Range' on type '__ComObject' not found. in the statement Dim ...
Joy G's user avatar
  • 49
0 votes
2 answers
1k views

I am facing difficulty in understanding the following concepts. I had posted a question some time back - read through the answers but some things are still not clear. I state my confusion below: My ...
Sougata's user avatar
  • 337
1 vote
1 answer
713 views

What is the difference between the following two statements? I was writing a basic VB.net code which creates a new excel workbook and adds a new sheet. Both seem to be doing the same thing: Dim oxl As ...
Sougata's user avatar
  • 337
0 votes
1 answer
413 views

I am trying to create an "instant cloud flow" on Power Automate. Context: Excel file "A" contains a table "X" which gets updated regularly with new rows at the bottom ...
Verminous's user avatar
  • 555
2 votes
0 answers
2k views

I logged into my SAP GUI and recorded a basic process to test using SAP GUI script recording option. After that I went to excel and wrote the following code. When I run it, I get the error : Run-time ...
marsprogrammer's user avatar
1 vote
1 answer
44 views

I need to move cell D3 to D4 in excel if cell A3 is not equal to C3 can anyone tell how to do this using python?
Techie_needs help 's user avatar
0 votes
0 answers
523 views

Why does code1 work, and code 2 doesn't? The only difference I see is Macro in code 2 is more complex. What I wanted to do Run advance macro automatically when cell value changes due to formula. The ...
Gmaster's user avatar
  • 30
0 votes
0 answers
473 views

I am generating an excel programmatically, but it works fine in VS, when I tried automating it and compiling via Linux environment, it shows error. ` using System.Drawing; ws1.View.FreezePanes(2, 1); ...
arokia antony's user avatar
0 votes
0 answers
35 views

Not sure why I'm getting subscript out of range error on this code but as per my understandings the code is correct. This code was working fine few hours back but now getting this error. Can anyone ...
Lal Sahab's user avatar
0 votes
1 answer
403 views

I'm trying to use Microsoft.Office.Interop.Excel library to convert a csv to an xlsx. This is the function I am using public static string ConvertToXlsx(string _sFilePath) { string _newFilePath = ...
NortziHead's user avatar
3 votes
1 answer
886 views

In a Delphi application I am using since years the following code to export xlxs to pdf: function TExportTool.ExportExcelToPDF(aFileName, aNewFileName: String): Boolean; // reference : http://...
UnDiUdin's user avatar
  • 15.5k
0 votes
2 answers
2k views

I am using the following office script to hide a daily excel worksheet at the end of the work day. It runs fine when run from the script in excel, however, it fails when triggered by Power Automate ...
David Goldwag's user avatar
0 votes
1 answer
174 views

I'm trying to write a Macro that will refer out to a file I use to track credits(I call it Master6 below). In the code excerpt below I try to do some initial testing like, see if excel is even running,...
DTDettmer's user avatar
0 votes
2 answers
444 views

My MATLAB code produces data that I want to send to Excel. I use ActiveX Server in MATLAB to both produce the Excel file and to do the export (I can control more properties of the resulting Excel file ...
myotis's user avatar
  • 423
2 votes
1 answer
451 views

I'm writing code that calls Excel macros via COM Automation. There is a need to handle different return types and pattern matching is perfect for that: var result = ExcelApp.Run("MyMacro", .....
Martin Liversage's user avatar
0 votes
1 answer
740 views

I just want to generate random float numbers between the range.But i am facing some issue This is my code import xlsxwriter import random wb = xlsxwriter.Workbook('abc.xlsx') ws = wb.add_worksheet() ...
Someshwaran's user avatar
0 votes
0 answers
257 views

I am new to the PowerShell world, and my need is very simple. I found this utility https://github.com/dfinke/ImportExcel that meets my need but I could not find a suitable exampe But I am struggling ...
Sanchu Varkey's user avatar
1 vote
2 answers
210 views

I need to store data like below for TextToColumns Excel automation. I need to implement Code-2 or Code-3 or Code-4 is that any way to achieve? I have more than 350+ data so I cant use Code-1, that's ...
Dinesh Kumar's user avatar
0 votes
0 answers
847 views

I am trying to write a program, where I must first apply the filter to Column S with 6 possible filter values (1,2,3,4,5,6). Once the filter is applied, I must copy the last used cell in column T and ...
Kumar V Reddy's user avatar
0 votes
0 answers
241 views

Scenario: Two clients on different machines read a range of cells from a shared workbook (.../drive/{drive-id}/items/{id}/workbook/worksheets/{id|name}/range(address='...'). If they both don't find ...
kostasvs's user avatar
  • 431
1 vote
0 answers
34 views

I am trying to split excel spreadsheet based on columns and retain the formulas used in it. I was using openpyxl to read the formulas but got stuck as it reads formulas and write as it is but i need ...
Laxman's user avatar
  • 11
3 votes
2 answers
7k views

When I'm creating an Excel file for a user in VB.Net, I am getting an error ("You can't perform this action when the file is read-only") when I try to save the file and it seems to be ...
Tim F's user avatar
  • 143
0 votes
0 answers
315 views

I have an xlsm file that I need to insert data but my problem is that the xlsm in protected. I use the oWorkbook.Protect(,,.F.) to unprotect but the function is not working. I s there any way to ...
Vic's user avatar
  • 537
2 votes
1 answer
380 views

I need to split texts using delimiter |.But after split its truncating front zeros: Input 0001|00030455|testing 0003|00004532|testing Expected Output 0001 00030455 testing 0003 00004532 testing ...
Dinesh Kumar's user avatar
-2 votes
1 answer
349 views

I am Getting error while automating an existing IE window. error is "Object Variable or with block variable not set" Code is Sub accessExistingIEBrowser() boolWindowFound = False ...
Anuj Kumar's user avatar
1 vote
0 answers
62 views

We have excel reports which are having connections from external sources. We need to refresh these connections in a day twice. We are already having an application for this which uses Interop. Now we ...
SKV's user avatar
  • 21
-1 votes
2 answers
288 views

From the below Image I want to compare Second Workbook(Records.xlsm) with First Workbook(HandBook.xlsm) I want to check if Department ID and Course ID Combination is valid by comparing it with the ...
hina's user avatar
  • 21
0 votes
0 answers
94 views

Our admins ran some MS Office 2016 updates (Build 11929.20838) and all of a sudden I noticed a few unexpected errors in one of my previously written Excel VBA macros. For example below error is ...
SmIqbal's user avatar
  • 99
2 votes
0 answers
524 views

The documentation says need to change only the top-left cell of merge cells. ws.merge_cells(start_row=1, start_column=1, end_row=1, end_column=3) ws.cell(1,1).border=Border(right=Side(border_style='...
Dr.PB's user avatar
  • 1,077
0 votes
0 answers
128 views

Can you please help me in copying data from a particular tab of excel sheet to another tab of excel sheet bearing the same name and data but in different workbook using Python.The workbook in which ...
Curious One's user avatar
0 votes
0 answers
463 views

I have certain ranges within an Excel file and I create an instance of Word template from within Excel VBA. This Word template has a bunch of Doc variables so that I can replace the values of those ...
SmIqbal's user avatar
  • 99
0 votes
0 answers
166 views

I have been trying to automate the process of executing the "Twinfield Analysis" add-in in Excel for quite some time. The challenge I face is that this add-in is needed to be clicked and ...
Bibhu Ashish Panda's user avatar
2 votes
1 answer
128 views

So my wife manages the timesheets for her employers company and has to print a pdf timesheet for each employee that worked on client A's project 1. For instance: Client A - Project 1 - Employee 1 - ...
Wes's user avatar
  • 33
1 vote
1 answer
513 views

I was wondering if anyone out there can help to resolve the issue I am facing right now, actually I wanted to ask that I have 1 column with 5k + rows, and each row has a statement in it and if I ...
Muneeb Hassan's user avatar
0 votes
0 answers
78 views

I am trying to create multiple users on a web application using Excel VBA script. Below code works fine for the first row user creation but stops at set document for the second row. Actually Web app ...
Ankush Kaura's user avatar
0 votes
1 answer
51 views

I need to resize excel particular column in a particular sheet.But not able to do so Sub resizeColumn(sourceWb As String, Sheet As String, column As String) Dim wkbSource As Workbook Dim sheetName As ...
Nani's user avatar
  • 3
-1 votes
1 answer
126 views

Sub Delete_Rows() Dim lo As ListObject Dim ActiveSheet As String Dim wkbSource As Workbook Application.ScreenUpdating = False Set wkbSource = Workbooks.Open("C:\Users\nani\Desktop\11.0\deleteRows\...
Nani's user avatar
  • 3
0 votes
1 answer
45 views

I have an Excel dataset and I can't use any plug-ins - only Excel formulas, for the following task: There is a table: Column A, containing text labels, and Column B, containing numbers corresponding ...
Andrea's user avatar
  • 3