Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default copy and paste from text boxes

I need to copy information from 8 textboxes into an excel sheet. I need the
information copied across a row and each item from each textbox needs to be
copied into a seperate cell. I also need to be able to copy this information
into the next empty row. Anyone know how to do this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default copy and paste from text boxes

Next row in column A

nextrow=cells(rows.count,"A").end(xlup).row+1

Assigning data:

Cells(nextrow,"A")=textbox1.value
Cells(nextrow,"B")=textbox2.value
etc

You should qualify with w/sheet name

With worksheets("Sheet1")
nextrow=.cells(rows.count,"A").end(xlup).row+1
.Cells(nextrow,"A")=textbox1.value
etc
end with

HTH

"enyaw" wrote:

I need to copy information from 8 textboxes into an excel sheet. I need the
information copied across a row and each item from each textbox needs to be
copied into a seperate cell. I also need to be able to copy this information
into the next empty row. Anyone know how to do this?

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
User Form Text Boxes - Copy format of text boxes NDBC Excel Discussion (Misc queries) 3 July 2nd 09 02:02 AM
How do I preserve text boxes in a chart during copy/paste? RachelG Charts and Charting in Excel 1 October 5th 08 12:30 PM
Copy and Paste Check Boxes Dolphinv4 Excel Discussion (Misc queries) 0 May 29th 07 07:40 AM
copy and paste graphics into comment boxes steve Excel Programming 0 June 24th 05 03:38 AM
Code-Copy & Paste in Text Boxes Bourbon[_27_] Excel Programming 1 January 28th 04 12:53 AM


All times are GMT +1. The time now is 07:10 AM.

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"