View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Paulw2k Paulw2k is offline
external usenet poster
 
Posts: 36
Default Pulling value from cell to complete path name

Hi,

district=Range("G10").value
sPath="\\Cpgbyfs03\comrfq\GBY\" & district & "\MyForm.xls"


Paul



"tschultz " wrote in message
...
I'm looking for a way to extract a value from an Excel form to complete
path for SaveAs operation. This what I currently have:

Need to save form as :
sPath = "\\Cpgbyfs03\comrfq\GBY\20\MyForm.xls" (where 20 is a folder
for a specific district)

The thing I'm running into is by specifying the district as part of
sPath, I need to change 17 of these forms each time for 6 macros when
master form is split into districts (17 districts and 6 approval
locations). Obviously, this would not be very productive.

My first thought was to provide user with input box to enter district,
but all users are not computer savy and concern over typos exists.
Cell G10 on the form currently contains a value for that district's
number. What I'm looking to do is insert the value from cell G10 of
active form and make it part of the sPath code so each form will be
routed to correct location on a terminal server.

Any suggestions would be greatly appreciated.
tschultz


---
Message posted from http://www.ExcelForum.com/