Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 22nd, 2009, 08:20 AM
Authorized User
 
Join Date: Jul 2009
Posts: 30
Thanks: 10
Thanked 0 Times in 0 Posts
Question Convert VBA to vb.Net

Hi all

I have a excel 2003 worksheet project I have put this into vb 2008
can someone help me with the code for this I have 4 macros I need to run for the first one I have copy the code from excel into a new buttoncommand in vb.
But there are a lot of problems I no this is a big ask and this my first time useing vb
sample
Code:
Private Sub CommandButton1_Click()

Dim Count As Long

Count = 1
For i = 2 To 65536
    
    If Cells(i, 1) <> "" Then
        Count = Count + 1
    End If
Next i

Dim date_row As Date
date_row = Cells(Count, 1).Value
date_row = date_row + 1


Sheets("Sheet1").Cells(1, 1)(Rows.Count, "A").End(xlUp).Offset(1).Value = date_row
 
Old July 22nd, 2009, 09:51 PM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Here are couple of links to start with.

http://support.microsoft.com/kb/302084

http://forums.devx.com/showthread.php?t=155202

Will be glad to help you with Excel & VB.NET . Just wanted you to get into the Excel interop :)

Cheers
Shasur
__________________
C# Code Snippets (http://www.dotnetdud.blogspot.com)

VBA Tips &amp; Tricks (http://www.vbadud.blogspot.com)





Similar Threads
Thread Thread Starter Forum Replies Last Post
VB.NET 2003 Appendix B convert to VB 2008 Express Edition brucechess BOOK: Beginning VB.NET Databases 10 February 5th, 2009 12:52 PM
convert PHP to VB.NET or C# eugz VB.NET 4 April 24th, 2007 01:12 PM
convert dsr file from vb to vb.net Shashi001 VB Components 1 September 22nd, 2006 12:24 PM
convert vba code to vb tommy03 VB How-To 3 February 23rd, 2005 02:13 PM
Help - Convert from C# to VB.Net CrazyLegsCooper VS.NET 2002/2003 1 July 20th, 2003 10:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.