Consulting

Results 1 to 3 of 3

Thread: Help Required with inputing data to excel worksheet

  1. #1

    Help Required with inputing data to excel worksheet

    Hey

    I am using excel 2003 and am a complete novice, I need to know how I input data using a vba form that I have, where the data will be going into different cells, placed in different rows and columns.

    i.e txtOne will go into cell A2, txtTwo will be D5 and txtThree will insert into F3. etc...


    Thanks in advance.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Have an OK button

    [vba]

    Private Sub cmdOK_Click()

    With Me
    Worksheets("Sheet1").Range("A2").Value = .txtOne.Text
    Worksheets("Sheet1").Range("D5").Value = .txtTwo.Text
    Worksheets("Sheet1").Range("F3").Value = .txtThree.Text
    End With
    End Sub
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Colin,
    Are you new to one or the other or both Excel and VBA?
    Your question is very broad and cannot really be anwered explicitly. If you want to upload a sheet w/ an example of what you want, we can have a look at how your task can be accomplished.
    my site: www.ecboardco.com
    was built w/ a majority of the assistance from the board members here... thanks VBAX.

    Just because I see something, doesn't mean that what's actually happening is what I see.

    You don't get from 0-90 by standing still!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •