Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / December 2006

Tip: Looking for answers? Try searching our database.

Filename containing cell values

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bluegrassstateworker - 12 Dec 2006 14:12 GMT
Hello,
Has anyone experience with passing cell parameters to a file name using
a button and VB?  I have a spreadsheet I am using to send out to
multiple individuals to collect data and need a consistent format to
help manage the files that I will be receiving via email.

Here is what I have in mind: There are three cells containing data that
I would like to concatenate into a file name for my spreadsheet.  The
filename would end up being something like: cell1_cell2_cell3_date.xls.
Finishing the data entry, the user would click on a button within the
spreadsheet, then click on the OK button in the SaveAs window.  The
next step would involve code that emails the spreadsheet as an
attachement (this is done already).  We are all on the same version of
Outlook and Excel so compatibility is not an issue.  Any ideas?

Thanks.
Don Guillett - 12 Dec 2006 14:30 GMT
Sub myfilename()
For i = 1 To 3
mfn = mfn & Cells(i, "I")
Next
mfn = mfn & "date.xls"
MsgBox mfn
End Sub

Signature

Don Guillett
SalesAid Software
dguillett1@austin.rr.com

> Hello,
> Has anyone experience with passing cell parameters to a file name using
[quoted text clipped - 12 lines]
>
> Thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.