Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 4.0 aka C# 2010 > BOOK: Beginning Visual C# 2010
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Visual C# 2010
This is the forum to discuss the Wrox book Beginning Visual C# 2010 by Karli Watson, Christian Nagel, Jacob Hammer Pedersen, Jon D. Reid, Morgan Skinner, ; ISBN: 9780470502266
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual C# 2010 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
Thread Tools Display Modes
  #1 (permalink)  
Old September 11th, 2011, 01:54 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Sep 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to program from excel to enter information in the next blank cell

can someone help with my code i am new to c# and programming but would like to change my code rather then write to A2 to look at the active sheet and find the next free cell in column A and write to that cell here is the code i am using

 object company = sheet.Application.InputBox("Enter Company Number", "Company Number");
            object comments = sheet.Application.InputBox("Enter Comment's", "Comments");
            sheet.get_Range("A2", misValue).Formula = date.ToString(format);
            sheet.get_Range("b2", misValue).Formula = currenttime.Text;
            sheet.get_Range("c2", misValue).Formula = currenttime.Text;
            sheet.get_Range("d2", misValue).Formula = company;
            sheet.get_Range("e2", misValue).Formula = comments;
            Start.BackColor = Color.Green;}

Thread Tools
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
Read Excel Blank cell in c# Vijay123 ASP.NET 2.0 Basics 0 March 5th, 2009 04:42 AM
Excel ALT+ENTER, Html equivalent? lizard8890 Excel VBA 1 October 16th, 2006 03:53 AM
Using VBA in excel to move information am6019a VB How-To 2 June 14th, 2006 08:15 AM
Find the rowcount before blank cell stepdev Excel VBA 6 May 22nd, 2006 03:05 PM

All times are GMT -4. The time now is 03:56 PM.

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