Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ron Ron is offline
external usenet poster
 
Posts: 250
Default Auto "Save As" Cell value when data entered in cell

I am developing a form template for our company. I would like it to
automatically prompt to "Save As" as soon as data in entered into the contact
cell. I would also like it to suggest for the file name, the name that is in
that cell.

I would assume this would be performed in the Visual Basic Editor but I am
not sure. Also, I am not familiar with this programming format.

Thank your for your assistance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Auto "Save As" Cell value when data entered in cell

You would use the change event and put in an if statement. Assume D1 is the
"contact cell".

Private Sub Worksheet_Change(ByVal Target As Range)
if Target.Address = "$D$1" then
if Thisworkbook.Path = "" then
ThisWorkbook.SaveAs "C:\Myfolder\" & Target.Value & ".xls"
end if
End if
End Sub

right click on the sheet tab of the sheet with the "Contact Cell" and select
view code, then put in code like the above.

http://www.cpearson.com/excel/events.htm for an overview of events.

To learn about vBA
http://msdn.microsoft.com/office/und...d/default.aspx
http://www.mvps.org/dmcritchie/excel/getstarted.htm
http://www.mvps.org/dmcritchie/excel....htm#tutorials

--
Regards,
Tom Ogilvy


"Ron" wrote:

I am developing a form template for our company. I would like it to
automatically prompt to "Save As" as soon as data in entered into the contact
cell. I would also like it to suggest for the file name, the name that is in
that cell.

I would assume this would be performed in the Visual Basic Editor but I am
not sure. Also, I am not familiar with this programming format.

Thank your for your assistance

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting on "Any Text" entered in a cell Chris Mather Excel Discussion (Misc queries) 5 April 3rd 23 01:11 PM
Adding data only if adjacent to cell labeled "male"/"female" lovesrubbaducky Excel Worksheet Functions 1 November 23rd 09 05:49 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
"CELL("FILENAME") NOT UPDATE AFTER "SAVE AS" ACTION yossie6 Excel Discussion (Misc queries) 1 June 16th 08 12:16 PM
save and restore "Workbook Menu Bar" & "Cell" menus Jeff Higgins Excel Programming 2 February 14th 05 01:33 AM


All times are GMT +1. The time now is 01:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"