LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default From forms into a new row neatly?

rw = 10
i = 1
for each ctrl in userform1.controls
Cells(rw,i) = ctrl.Value
i = i + 1
Next

--
Regards,
Tom Ogilvy


count wrote in message
...
Hi,
Can you recall this nifty looping way of populating new row when form is
OK-yed?
I believe this technique gives code immunity to adding new fields|columns.
Txs Paul




 
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
Forms Murial Excel Discussion (Misc queries) 1 December 16th 08 09:22 PM
forms Tomiii Excel Discussion (Misc queries) 1 December 24th 06 10:18 AM
Forms Brenda New Users to Excel 1 April 27th 05 10:42 PM
Forms [email protected] Excel Programming 1 November 27th 03 01:16 AM
Forms DebbieG Excel Programming 1 September 10th 03 06:15 PM


All times are GMT +1. The time now is 11:35 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"