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.
 

Some videos you may like

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Trevor G

Well-known Member
Joined
Jul 17, 2008
Messages
6,701
Office Version
  1. 2016
Platform
  1. Windows
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
 

Watch MrExcel Video

Forum statistics

Threads
1,123,123
Messages
5,599,834
Members
414,341
Latest member
Mohammedsobhey

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
Top