need help to get server name from the Launcher

agupta

New Member
Joined
May 26, 2011
Messages
3
I have a reporting application which is launched from a server which is hardcoded in the application databases (1 database per state). I need to do this virtually so no hard coding. I achieved this by putting the server name only in the setting of the launcher. Now my problem is that if I pull the databases that I'm accessing from the launcher in my c: drive to test etc the server is lost. How can I achive this by not hardcoding the server name? I tried using code for "currentDB" but when the reports are written the directories and Macros are not in my C drive. In the past the server name was all hard coded in all hundreds of reports for each databaes per state. Can I add code to get the server name from the launcher? I don't know how.
Thanks
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,224,590
Messages
6,179,762
Members
452,940
Latest member
rootytrip

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