ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Q: most efficient way to feed textboxes from worksheet and vice versa (https://www.excelbanter.com/excel-programming/344215-q-most-efficient-way-feed-textboxes-worksheet-vice-versa.html)

Tom Ogilvy

most efficient way to feed textboxes from worksheet and vice versa
 
for activeX controls on a worksheets with sequential names as an example:

for i = 1 to 50
With Worksheets("Sheet1")
.OleObjects("TextBox" & i).Object.Value = .Cells(i,2)
.OleObjects("Label" & i).Object.Caption = .Cells(i,1)
End With
Next

--
Regards,
Tom Ogilvy


"count" wrote in message
...
Hi,
I believe this has been measured some time ago. I need to feed more than

50
controls (textboxes and label.captions mostly) real fast.
Is there a clear winner among the methods?

TIA
Paul





count

Q: most efficient way to feed textboxes from worksheet and vice versa
 
Hi,
I believe this has been measured some time ago. I need to feed more than 50
controls (textboxes and label.captions mostly) real fast.
Is there a clear winner among the methods?

TIA
Paul



Bob Phillips[_6_]

most efficient way to feed textboxes from worksheet and vice versa
 
50 is trivial. Any way, manually loading, or linking to worksheet cells
should be fast enough.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"count" wrote in message
...
Hi,
I believe this has been measured some time ago. I need to feed more than

50
controls (textboxes and label.captions mostly) real fast.
Is there a clear winner among the methods?

TIA
Paul






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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com