Consulting

Results 1 to 3 of 3

Thread: Adding Records to an Excel table Vba

  1. #1

    Adding Records to an Excel table Vba

    Hello everyone,

    Id like some help on something probably easy for u guys.

    I have a 2 sheets, one named "clients" and another named "InsertClient".

    On "insert client" i have a cell (A1) and a button that says insert.

    What i would like the button to do is, when the user inputs a name into A1 i want the button to go to my "clients" sheet where i have a table(column A and B) and find the next blank row on column B and insert the name i had on cell A1.

    Can someone help me on the code i can insert on the button.

    Thx

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Off the top

    [vba]

    Worksheets("Sheet2").Range("A1").Copy Worksheets("Sheet1").Range("B1").End(xlDown).Offset(1, 0)
    [/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
    thx james

Posting Permissions

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