Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 4.0 aka C# 2010 > BOOK: Beginning Visual C# 2010
|
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 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 September 11th, 2011, 01:54 PM
Registered User
 
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

Code:
 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;}





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 05: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





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