Welcome to Dream.In.Code
Getting VB.NET Help is Easy!

Join 136,551 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,893 people online right now. Registration is fast and FREE... Join Now!




Project to automate logging events

 
Reply to this topicStart new topic

Project to automate logging events, Im a signal soldier trying to get a handle on programing to help autom

billyv123
21 Aug, 2008 - 07:10 PM
Post #1

New D.I.C Head
*

Joined: 21 Aug, 2008
Posts: 1

Hi all,

I am trying to find some answers to to where i would find how to have a chosen radio button auto write initials to a column in excel when textbox writes in same row...

please dont write it...just someone point me where to start looking...

the concept is when the radio button is clicked it will auto put initials in while also writing local computer time to DTG (date time group) to respected column, then i want it to add value to each row and if value is written then write to next line...i am very new to this and you can
knock me all you want when you look at the code because it is very skeleton based but i am very new to this shiza and honestly trying to learn...

thanks

SGT V

vb

Public Class Form1
Dim ApExcel As Object 'To open Excel

Public Sub New()
ApExcel = CreateObject("Excel.application")
ApExcel.Visible = True '
ApExcel.Workbooks.Add()
ApExcel.cells(1, 1).Formula = "DTG"
ApExcel.cells(1, 2).Formula = "EVENT"
ApExcel.cells(1, 3).formula = "INITIALS"

ApExcel.Range("A1:A3").BORDERS.Color = RGB(0, 0, 0)
ApExcel.Range("A1:Z1").BORDERS.Color = RGB(0, 0, 0)
'change the borders.
ApExcel.Columns("A:AY").EntireColumn.autofit() 'To adjust the
'column's width.

ApExcel.Range("A:Z").Select()
ApExcel.Selection.NumberFormat = "0"

InitializeComponent()

End Sub


Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

End Sub

Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click

End Sub

Private Sub RadioButton5_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)

End Sub

Private Sub RadioButton10_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)

End Sub

Private Sub RadioButton11_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)

End Sub

Private Sub RadioButton12_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)

End Sub

Private Sub RadioButton13_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)

End Sub

Private Sub RadioButton14_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)

End Sub

Private Sub Label2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label2.Click

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

End Sub

Private Sub Label4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

End Sub

Private Sub RadioButton2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rbsund.CheckedChanged

End Sub
End Class


Mod Edit: Please use code tags when posting your code. Code tags are used like so => code.gif

Thanks,
PsychoCoder smile.gif

This post has been edited by PsychoCoder: 21 Aug, 2008 - 08:43 PM
User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: Project To Automate Logging Events
21 Aug, 2008 - 08:43 PM
Post #2

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 8,997



Thanked: 125 times
Dream Kudos: 8625
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
Moved to VB.NET smile.gif
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 11:12PM

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month