Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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
Reply With Quote
  #2 (permalink)  
Old July 22nd, 2009, 09:51 PM
Friend of Wrox
Points: 3,060, Level: 23
Points: 3,060, Level: 23 Points: 3,060, Level: 23 Points: 3,060, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2005
Location: , , .
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)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:29 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.