Quantcast
Channel: Active questions tagged excel - Stack Overflow
Browsing all 88809 articles
Browse latest View live
↧

VSTO Ribbon Button Opens Windows Form But Unable to Use another Instance of...

I have a VSTO application that has multiple groups and buttons on the ribbon. When a user clicks on a button a specific form is loaded on Excel. It looks like when the form is open a user is unable to...

View Article


Is it possible to activate a file with a variable name

I'm trying to open a file which could have a different name everyday but will always contain '1234'. After that, copy and paste various rows of data etc. Problem i'm having now is that I used the macro...

View Article


Create Line charts across multiple sheets VBA

I want to create 6 line charts in across (16 tabs). The data is all the same type and row count. However, some of the data is NA so I need to come up with a way to detect that and graph...

View Article

Image may be NSFW.
Clik here to view.

Searching Specific Excel Cell using Java Apache POI

I am using Apache POI API to read Excel file and check the quantity of products available or not. I am successfully reading excel file using below code but I am unable to read the specific cell...

View Article

Image may be NSFW.
Clik here to view.

How to compare values between rows

I need help here. I have a spreadsheet that has more than 6K datas. I need to compare the values between the "MOVE_IN_QTY" and "MOVE_OUT_QTY" by using VBA. The problem here is I need to compare the...

View Article


Kill selected file(s) in Recycle Bin

I am building a purging tool that lists and destroys (using Kill) any files in certain locations on a user's PC. My tool works well in all locations except for Recycle Bin (C:\$Recycle.Bin).I am...

View Article

VBA to copy Module from one Excel Workbook to another Workbook

I am trying to copy a module from one excel workbook to another using VBA.My Code:'Copy Macros Dim comp As Object Set comp = ThisWorkbook.VBProject.VBComponents("Module2") Set Target = Workbooks("Food...

View Article

Index & Match formula using IF and ISERROR

I have data in columns C & D. A range of ten students in A1 to A10 are identified with roll numbers. In Column C and corresponding Column D, there are 8 students from roll number 1 to 8 (Column C)...

View Article


Image may be NSFW.
Clik here to view.

Excel Not Saving External Source Links, Having to Relink Every Time it Opens

I have two Excel files (Microsoft 365)that were communicating fine one day and then the next day, it prompts me to update links. Other files have also stopped updating links. I also tried on a...

View Article


Using ADODB recordset doesn't return a value when same query in Access does

I am having a frustrating problem with EXCEL VBA using an ADODB recordset. I have a query which directly in Access works correctly but when I put it in the VBA the recordset always comes back null. I...

View Article

how to add multiple sheets to excel file

i am adding multiple sheets to excel but it shows the exception System.Runtime.InteropServices.COMException: 'Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))' . the exception...

View Article

PHP save to Excel in One Row per ID [closed]

$sqlSelect = " SELECT * FROM student_report_card_grades where student_id = $id AND syear = $syear "; $result = mysqli_query($conn, $sqlSelect); while ($row = mysqli_fetch_array($result)){ $sID =...

View Article

C# vsto Add-in how to set a filter for the whole selected 1st row and how to...

I want set an AutoFilter for the whole 1st line e.g. Excel.Range range = xlWsCopy.Range["1:1"]; so, that I have an Autofilter for each column. I don't want set a special column, only set the filter, as...

View Article


Store multiple results from HLookup in variable using for loop VBA

I am trying to store the results from a HLookup function in a variable. With the following code it works fine. Private Sub UserForm_Initialize() Dim Test As String Dim name As String Dim i As Integer...

View Article

Can use Workbook.Checkout but Workbook.Checkin fails for some users

We have a spreadsheet stored on a Sharepoint server that all users can read manually, but also certain approved users have write-access, which is used mainly via a macro-enabled workbook (entirely...

View Article


ListBox move scroll by selected item

I have create ListBox by Form Controls. How to move the scrollbar by item selected?

View Article

How to find the exact count of sheets in all excel files

I want to find the count of the number of sheets in all excel files. This is what I did.file_list <- list.files(pattern = '.xlsx',recursive = T) head(file_list) [1] "one.xlsx" [2] "two.xlsx" [3]...

View Article


Change fontstyle on PivotField Excel VBA

I have a code that builds my pivottable, and I want to set one of the fields as italic but i cant figure out how.The code I have is like this from the begining:With...

View Article

Sumproduct - counting equal pairs of numbers (and filtering them)

In columns D&E I have a list of scores for a game, where D is points for and E is points against, like soD E 1 3 4 2 3 3 3 1 I'm trying to create a formula that displays a win / draw / loss record...

View Article

Auto update excel cell based on the Named Range list updates

Have defined name range "Countries" which is referred to in multiple sheets and COunrty "Austrlia" has been added with incorrect spelling in the Name range and that has been selected in multiple rows...

View Article
Browsing all 88809 articles
Browse latest View live