Post userform data to workbooks on A Network

simora

Board Regular
Joined
May 7, 2005
Messages
199
I am trying to post userform data to multiple workbooks, but the 2nd workbook is on a network server. p:\NetServer\MyDir\my2009Files\PostData2009\mydec.xls

How do I post the same data to the network workbook (Sheet1) which is mydec.xls ,

The contents of Userform TextBox3 is posted to a column in mydec.xls based on the value of TextBox2 so the code has to search for the appropriate column once the network workbook is activated.

Any ideas and code appreciated.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
I am trying to post userform data to multiple workbooks, but the 2nd workbook is on a network server. p:\NetServer\MyDir\my2009Files\PostData2009\mydec.xls

How do I post the same data to the network workbook (Sheet1) which is mydec.xls ,

The contents of Userform TextBox3 is posted to a column in mydec.xls based on the value of TextBox2 so the code has to search for the appropriate column once the network workbook is activated.

Any ideas and code appreciated.

Behind a command button do something like this, run the code to the sheet first then same to the other book:

sheets("sheet1").select
Range("b2").select
do until activecell.value=""
activecell.offset(1,0).select
loop
Activecell.value=me.textbox3.value

Workbooks.open.p:\NetServer\MyDir\my2009Files\PostData2009\mydec.xls
sheets("sheet1").select
Range("b2").select
do until activecell.value=""
activecell.offset(1,0).select
loop
Activecell.value=me.textbox3.value
 
Upvote 0

Forum statistics

Threads
1,214,870
Messages
6,122,021
Members
449,060
Latest member
LinusJE

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top