P
Phil
I'm not a programmer, but with the help of this group I can usually figure
it out, but this time I stuck. Could someone please help me with writing the
vb code for the following situation?
I have two excel files: excelfile1.xls and excelfile2.xls
In excelfile1.xls I have a button that when clicked opens a form that has a
field to enter a name. You enter the name you want and click an ok button.
It then creates a new sheet in both excel files with the name you entered.
(example: you enter test1 as your name and a new sheet is created in both
excel files called test1). Works fine.
I then have another button in excelfile1.xls that gets created on the test1
sheet that when clicked opens a form with 3 fields. Game1, Game2, Game3. I
enter values in these text boxes and click ok.
When I do this I need the values to be copied to excelfile2.xls into cell
c4,c5,c6 on the sheet test1.
The catch is I could create test1 sheet today, test2 sheet tomorrow, test3
sheet the next day, etc. When I enter the values in the form I need them to
be copied to the same sheet name in excelfile2.xls. (example: test1 and
test2 sheet gets created in excelfile1.xls and excelfile2.xls. I am on sheet
test1 in excelfile1.xls, I click the button and enter values in the form. I
need the values to get entered in cell c4,c5,c6 on sheet test1 in
excelfile2.xls. Then I'm on sheet test2 in excelfile1.xls, enter my values
in the form, I need them to get entered into c4,c5,c6 on sheet test2 in
excelfile2.xls)
So basicly I need the values from the form in excelfile1.xls to get entered
onto the sheet with the same name in excelfile2.xls.
I hope this isn't too confusing. If you need more info from me let me know.
Thanks for any coding help you can supply.
Phil
it out, but this time I stuck. Could someone please help me with writing the
vb code for the following situation?
I have two excel files: excelfile1.xls and excelfile2.xls
In excelfile1.xls I have a button that when clicked opens a form that has a
field to enter a name. You enter the name you want and click an ok button.
It then creates a new sheet in both excel files with the name you entered.
(example: you enter test1 as your name and a new sheet is created in both
excel files called test1). Works fine.
I then have another button in excelfile1.xls that gets created on the test1
sheet that when clicked opens a form with 3 fields. Game1, Game2, Game3. I
enter values in these text boxes and click ok.
When I do this I need the values to be copied to excelfile2.xls into cell
c4,c5,c6 on the sheet test1.
The catch is I could create test1 sheet today, test2 sheet tomorrow, test3
sheet the next day, etc. When I enter the values in the form I need them to
be copied to the same sheet name in excelfile2.xls. (example: test1 and
test2 sheet gets created in excelfile1.xls and excelfile2.xls. I am on sheet
test1 in excelfile1.xls, I click the button and enter values in the form. I
need the values to get entered in cell c4,c5,c6 on sheet test1 in
excelfile2.xls. Then I'm on sheet test2 in excelfile1.xls, enter my values
in the form, I need them to get entered into c4,c5,c6 on sheet test2 in
excelfile2.xls)
So basicly I need the values from the form in excelfile1.xls to get entered
onto the sheet with the same name in excelfile2.xls.
I hope this isn't too confusing. If you need more info from me let me know.
Thanks for any coding help you can supply.
Phil