Category "excel"

Run two variable loop to increment the column number for diff. sheets [closed]

I want to run this in loop by taking two variables for example i and j. Suppose i for sheet 1 and 2 and j for Sheet 3 until I dont reach the e

How to find inconsistencies in dates using VBA [closed]

I have an Excel file containing thousands of rows. There are ID, Planned End Date, and End Date columns. All IDs need to have at least one sam

Use cell value as worksheet name

Im new to VBA, and i have something i dont understand now. I've been trying to copy Worksheets by only copying Cells with a specific colour in a cell below. I w

Write to an existing .xlsm using pandas and XlsxWriter

I would like to write a dataframe to an existing .xlsm file which already has content. Write pandas dataframe to xlsm file (Excel with Macros enabled) describes

Most efficient way to have multiple criteria in an IF statement [closed]

Basically, I hoping to achieve 2 things here. I want to know if there is a way to make this multiple criteria IF statement shorter/more effici

Map SharePoint drive using VBA

I am trying to map a SharePoint document library so I can parse it with a FileSystemObject. Here is my code ... Dim objNetwork As Object Set objNetwork =

MATCH function doesn't find equal cells

I'm designing a datasheet that updates itself automatically. All of the macro code is working properly, but I have trouble locating the place where the data sho

Excel VBA to export specific sheets based on cell values to PDF

I would like to use cell values on Sheet 4 to select and export Sheet 1, Sheet 2, and Sheet 3 as one PDF file. For example, if Sheet 4's A1=1, A2=1, and A3=0,

ActiveSheet.Paste Error on protected sheet

I have 2 worksheets (Input & Record), I just want to copy some data from "Input" to "Record", it worked but if I protect "Record".... Paste method of Worksh

Excel problem: Exported from OBIEE to Excel analysis adding time part to a date column

There is a date column used in OBIEE analysis. That column is declared as 'date' datatype in Oracle table, type in rpd is also 'DATE'. However, when exported to

Masking Password in VBA Excel Input Box

Could someone please help me to mask the password entered to the input box generated using the below code. I will be using Office 365 ProPlus. Option Explicit P

Two different error handlers in one procedure

I have two separate error handlers. Both look for if two separate workbooks are open. Sub ErrHandler() wbsource_name=ThisWorkbook.Worksheets("Sheet1").Range

Get files from Sharepoint / Onedrive via VBA

The code below uses FSO to read a file containing information such as version, date and file path on a local network, and download a file according to local fil

How to Group by Date Field in a PivotTable using win32com.client

I tried many approaches from last few hours but no luck. Somebody please help me. group_dt = pt.PivotFields('Created') group_dt.LabelRange.Group(Start=True, End

What does the 130000 in Excel locale code [$-130000] mean?

Please note that my question is closely linked to this question. However, as the above question is technically already answered in the comments and I am still v

Write data frame to Excel file stored in Microsoft Teams using Graph API

I am new to working with APIs and especially MS Graph API so please excuse my ignorance. I work with data in R which is similar to Python, I have a data frame w

How to get the smtp email address located on the left of the "on behalf of" address

I would like to get the email address from the true contact that is sending the mailItem. I don't want the on behalf email address. Is there a way to do that? O

Data provider reading null cells , how do i handle it?

I'm trying to get the values from an excel sheet of 2 rows, the 1st row are the headings and the second row is the data, when I execute the code the 1st set of

Java ERROR: package X is declared in the unnamed module, but module Y does not read it

I am trying to make my javafx project to create an Excel file. One of the first steps for it would be XSSFWorkbook workbook = new XSSFWorkbook(); for which to w

How to set cell color based on another cell color

Sorry, I am new at MS Excel. I want to set cell A1 color to red if cell G1 is green and the same time I want to set cell A1 color to yellow if cell F1 is not em