Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Visual Basic

I am trying to write a simple VB program to enter names into a data base. I
have a column labeled names. I have made a UserForm with a TextBox called
names and a command button named Enter. I would like to type a name in the
TextBox, press Enter and the name be inserted into the first available row.
I have been able to cobble up a techinque to do this but I feel that there
may be a simpler way. My way is to go to the top of the table, do an End
Down which puts me on the last name. I then check the row number, add one
and and insert the name at that row. When I do this manuall, I do an End
Down Down but I have not been able to do figure out how to do this in VB.

Where can I find what xl commands are available?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Visual Basic

Range("A1").End(xldown).offset(1,0).Select

--
Regards,
Tom Ogilvy



"Ely" wrote:

I am trying to write a simple VB program to enter names into a data base. I
have a column labeled names. I have made a UserForm with a TextBox called
names and a command button named Enter. I would like to type a name in the
TextBox, press Enter and the name be inserted into the first available row.
I have been able to cobble up a techinque to do this but I feel that there
may be a simpler way. My way is to go to the top of the table, do an End
Down which puts me on the last name. I then check the row number, add one
and and insert the name at that row. When I do this manuall, I do an End
Down Down but I have not been able to do figure out how to do this in VB.

Where can I find what xl commands are available?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Visual Basic the same as Visual Studio 2008? Mike Stewart Excel Worksheet Functions 5 January 11th 09 04:58 PM
Programmatic access to visual basic project via Visual FoxPro Jim Rech Excel Programming 0 January 11th 07 01:53 PM
Make visual basic truely visual! GraphicalGuy Excel Programming 0 October 20th 06 05:53 PM
Can I run Visual Basic procedure using Excel Visual Basic editor? john.jacobs71[_2_] Excel Programming 3 December 26th 05 02:22 PM
changing the visual basic in office 2003 to visual studio net bigdaddy3 Excel Discussion (Misc queries) 1 September 13th 05 10:57 AM


All times are GMT +1. The time now is 08:45 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"