ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   copy data to combobox value sheet (https://www.excelbanter.com/excel-programming/411361-copy-data-combobox-value-sheet.html)

TUNGANA KURMA RAJU

copy data to combobox value sheet
 
I have a userform, with a combobox ,its list values are sheets names of
activeworkbook.it has 4 textboxes(input) ,after inputting data in these
boxes,the values be copied to (combobox1.vaue)w/sheet last row.I am using
line code
worksheets(.combobox1.value).activate
Range("A1").select
Do
then the code follows to find last empty cell.
When I run this sub I am getting error 'object required'.
How to select Combobox1.value sheet?what is line of code?



joel

copy data to combobox value sheet
 
Sheets("Sheet1").OLEObjects("combobox1").Object.Ad dItem "abc"


"TUNGANA KURMA RAJU" wrote:

I have a userform, with a combobox ,its list values are sheets names of
activeworkbook.it has 4 textboxes(input) ,after inputting data in these
boxes,the values be copied to (combobox1.vaue)w/sheet last row.I am using
line code
worksheets(.combobox1.value).activate
Range("A1").select
Do
then the code follows to find last empty cell.
When I run this sub I am getting error 'object required'.
How to select Combobox1.value sheet?what is line of code?




All times are GMT +1. The time now is 06:18 AM.

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