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

I'm sorry i couldn't come up with at good subject to describe m
question.

I have a form with three text boxes on it one is there to enter
change number, another is to enter a part number, and the third is t
Enter notes that describe the part. As of now my form has a comman
button that pastes the data that was entered into the text boxes, int
cells in three consecutive rows on a different sheet, in the sam
workbook. The output looks like:

Disposition Notes <---- This is a header that i
only shown once
Change Number 325 <---- These next three lines show
what is brought in from the text boxes.
Part Number r45891 <-----
(Notes go here) <-----

I know how to paste them in to specific cells but I need to know how
can paste these in rows for example starting at range "G8, G9, and G10
and then the next time a note is entered it doesn't write over top o
this one but starts in cells "G12, G13, G14" there may be a differen
number of parts with notes each time i run this report so it need t
change.

Thank you for your help.
Morr

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Textboxes and loops

Something like

With Worksheets("Sheet1")
cLastRow = .Cells(Rows.Count,"G").End(xlup).Row
.Cells(cLastRow+1,"G").value = Textbox3.Text
.Cells(cLastRow+2,"G").value = Textbox1.Text
.Cells(cLastRow+3,"G").value = Textbox2.Text
End With

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"morry " wrote in message
...
I'm sorry i couldn't come up with at good subject to describe my
question.

I have a form with three text boxes on it one is there to enter a
change number, another is to enter a part number, and the third is to
Enter notes that describe the part. As of now my form has a command
button that pastes the data that was entered into the text boxes, into
cells in three consecutive rows on a different sheet, in the same
workbook. The output looks like:

Disposition Notes <---- This is a header that is
only shown once
Change Number 325 <---- These next three lines shows
what is brought in from the text boxes.
Part Number r45891 <-----
(Notes go here) <-----

I know how to paste them in to specific cells but I need to know how i
can paste these in rows for example starting at range "G8, G9, and G10"
and then the next time a note is entered it doesn't write over top of
this one but starts in cells "G12, G13, G14" there may be a different
number of parts with notes each time i run this report so it need to
change.

Thank you for your help.
Morry


---
Message posted from http://www.ExcelForum.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
Loops... Willabo Excel Discussion (Misc queries) 2 June 14th 06 04:08 PM
do loops saravanan Excel Worksheet Functions 0 June 13th 06 10:53 AM
For next loops Kate Excel Discussion (Misc queries) 5 May 22nd 06 01:11 PM
Do loops grandfilth Excel Discussion (Misc queries) 1 November 10th 05 12:00 AM
Loops PaulSinki Excel Programming 3 December 10th 03 05:01 PM


All times are GMT +1. The time now is 08:30 PM.

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

About Us

"It's about Microsoft Excel"