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


I am thinking of a new approach for something. I want to create a user form,
and from that user form fill in details on a spreadsheet. that is the simple
part. what I want to do thou is be able to enter the new record on the next
blank line. that is where I am confused. help please.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200906/1

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,276
Default new approach


Hi,
you need to look for the first empty row

Dim iRow As Long
Dim ws As Worksheet

Set ws = Worksheets("Projects") ' change to your name

'find first empty row in database
With ws
iRow = .Cells(.Rows.Count, 3).End(xlUp).Offset(1, 0).Row

'copy the data to the database
.Cells(iRow, 4).Value = Me.TxtProjectname.Value ' change to your
form name

If this helps please click yes, thanks


"Darrell_Sarrasin via OfficeKB.com" wrote:

I am thinking of a new approach for something. I want to create a user form,
and from that user form fill in details on a spreadsheet. that is the simple
part. what I want to do thou is be able to enter the new record on the next
blank line. that is where I am confused. help please.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200906/1


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default new approach


hi
i wouldn't say this was that new of an approch. excel has had a built in
data form for some time.
2007
http://office.microsoft.com/en-us/ex...366981033.aspx
older
http://www.timeatlas.com/mos/5_Minut..._Input_Easier/

regards
FSt1
"Darrell_Sarrasin via OfficeKB.com" wrote:

I am thinking of a new approach for something. I want to create a user form,
and from that user form fill in details on a spreadsheet. that is the simple
part. what I want to do thou is be able to enter the new record on the next
blank line. that is where I am confused. help please.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200906/1


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default new approach


In your code, iRow will be the last row with data... the OP will need to add
one to it to get to the first *empty* row after it.

'copy the data to the database
..Cells(iRow + 1, 4).Value = Me.TxtProjectname.Value

--
Rick (MVP - Excel)


"Eduardo" wrote in message
...
Hi,
you need to look for the first empty row

Dim iRow As Long
Dim ws As Worksheet

Set ws = Worksheets("Projects") ' change to your name

'find first empty row in database
With ws
iRow = .Cells(.Rows.Count, 3).End(xlUp).Offset(1, 0).Row

'copy the data to the database
.Cells(iRow, 4).Value = Me.TxtProjectname.Value ' change to your
form name

If this helps please click yes, thanks


"Darrell_Sarrasin via OfficeKB.com" wrote:

I am thinking of a new approach for something. I want to create a user
form,
and from that user form fill in details on a spreadsheet. that is the
simple
part. what I want to do thou is be able to enter the new record on the
next
blank line. that is where I am confused. help please.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200906/1



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default new approach


This is great wish I would have known about it before but it will not take my
validation lists into consideration

FSt1 wrote:
hi
i wouldn't say this was that new of an approch. excel has had a built in
data form for some time.
2007
http://office.microsoft.com/en-us/ex...366981033.aspx
older
http://www.timeatlas.com/mos/5_Minut..._Input_Easier/

regards
FSt1

I am thinking of a new approach for something. I want to create a user form,
and from that user form fill in details on a spreadsheet. that is the simple
part. what I want to do thou is be able to enter the new record on the next
blank line. that is where I am confused. help please.


--
Message posted via http://www.officekb.com

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
new approach Darrell_Sarrasin via OfficeKB.com Excel Programming 0 June 22nd 09 06:13 PM
What is the right approach? Epinn Excel Worksheet Functions 3 October 8th 06 12:22 PM
How to approach this? mevetts Excel Discussion (Misc queries) 1 January 10th 06 04:20 PM
New approach davegb Excel Programming 6 December 6th 05 04:31 PM
How do I approach this? Grant Reid Excel Programming 5 May 25th 04 04:51 PM


All times are GMT +1. The time now is 12:18 PM.

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"