CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of Excel
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Text
Imports System.Windows.Forms
Imports System.Data.OleDb
Public Class FrmFromXLS
    Private data As DataTable
    Private Sub FrmFromXLS_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
by NelsonAmaya   May 04, 2011 @ 9:16am
Tags: Excel, VB .NET
163 Views
no comments
 
C++
Address( row, column, ref_type, ref_style, sheet_name )
=Address(4, 5) would return "$E$4" 
=Address(4, 5, 1) would return "$E$4" 
=Address(4, 5, 2) would return "E$4" 
=Address(4, 5, 3) would return "$E4" 
=Address(4, 5, 4) would return "E4" 
=Address(4, 5, 1, TRUE) would return "$E$4" 
=Address(4, 5, 1, FALSE) would return "R4C5" 
=Address(4, 5, 1, TRUE, "Sheet1") would return "Sheet1!$E$4" 
by Yuzhen Situ   August 11, 2009 @ 10:11pm
Tags: Excel, VBA
308 Views
no comments
 
C++
view plaincopy to clipboardprint?
  AnsiString GetExcelRangeCode(int row, int col)
  {
  AnsiString asExcelCode = "" ;
  while ( col ) {
  asExcelCode = (AnsiString)(char)('A'+(col-1)%26) + asExcelCode ;
  col = (col-1)/26 ;
  }
  return asExcelCode ;//+IntToStr(row) ;
  }
by Yuzhen Situ   August 11, 2009 @ 10:07pm
Tags: Excel BCB
268 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate