Skip to content
Code for Devs
  • Home
  • JavaScript
  • WordPress
  • Excel
  • VBA
  • C#
  • Miscellaneous
  • Contact Us
  • Home
  • codef4devs
  • Page 4

Author: codef4devs

Export C# DataTable to MS Excel

November 20, 2022November 20, 2022 codef4devs

Here, in this post, we are going to show you an C# code example of exporting a C# datatable data to MS Excel with headers. Step1: Add reference to Microsoft Excel Interop in your application. […]

Leave a commentC#

Excel VBA Code to Remove Duplicate Values in a Data Range

November 2, 2022November 2, 2022 codef4devs

We use Remove Duplicates feature of excel application to remove duplicate data in a column. Same task we can do by using VBA code. Range.RemoveDuplicates method of exvel VBA helps you to do this. We […]

Leave a commentVBA

How to Get All Files Available in a Directory By C#

October 21, 2022October 18, 2022 codef4devs

This post shows an example of listing name of all files with extension, available in a folder. We need to import System.IO namespace in our program and Directory.GetFiles() method helps you to get the list […]

Leave a commentC#

Creating A Directory by C# Code

October 19, 2022October 18, 2022 codef4devs

In this post, we will demonstrate an example of creating a directory by using C# code. For creating a directory in file system, you need to import System.IO namespace in program and CreateDirectory() method of […]

Leave a commentC#

How to Check if a File Exists by Using C#

October 5, 2022October 5, 2022 codef4devs

When you need to check whether a particular file exists on a specified path, you can use File.Exists(string) method of C#. This method requires full file name i.e. file name along with its extension and […]

Leave a commentC#

How to Copy Visible Cells only in Excel Filter by C#

October 2, 2022October 2, 2022 codef4devs

After applying filter to excel range, rows not satisfying the filter condition get hidden and only rows satisfying the filter condition are visible. Refer our previous post for detailed Excel AutoFilter by C# information. Below […]

Leave a commentC#

Using Auto Filter on Excel Range by C#

September 28, 2022September 30, 2022 codef4devs

Here in this article, we are going to provide you an overview of applying and working with filters on Excel range. C# Syntax of Applying Filters in Excel The below code line applies filter on […]

Leave a commentC#

Find Last Used Row or Column of Excel in C#

August 22, 2022August 20, 2022 codef4devs

While working with excel using C# you can require to find the last used row or column in a range. Here in this post, we are providing you the code snippets that will simplify your […]

Leave a commentC#

Copy Format from One Range to Another in Excel using C#

August 20, 2022August 20, 2022 codef4devs

This example demonstrates how to copy format from one excel range to another excel range. For this, you need to use PasteSpecial() method of Range with xlPasteFormats. For example, you have set the desired format […]

Leave a commentC#

How to Automate MS Excel using Microsoft Office Interop in C#

August 14, 2022August 18, 2022 codef4devs

Here in this article, we are going to guide you to create a program in C# to automate MS Excel workbook. To do this you need to add reference to the dynamic link library of […]

Leave a commentC#

Posts navigation

Previous 1 … 3 4 5 6 Next

Categories

  • C#
  • Excel
  • JavaScript
  • Miscellaneous
  • MySQL
  • Python
  • Uncategorized
  • VBA
  • WordPress

Recent Posts

  • Python code to Find a Cell in Excel having Specific Date
  • Python Error: ‘module ‘win32com.gen_pyxxxx’ has no attribute ‘CLSIDToClassMap’ Solution
  • Group Concat in Excel-Concatenating Cell Values based on Grouping Rows
  • Python: Send Email from Outlook with Attachment
  • How to Add Checkbox in DataGridView in C# Windows Form Application
Copyright © All rights reserved.