I am using Access to write the VB code that generates a graph in Excel. I ask for the user to input the path and file name that they want. How would I go about saving the file using those two pieces of information? Thanks!
							
						
					Saving files in Access
				
					Collapse
				
			
		
	X
- 
	
	
	
		
	
	
	
		
	
		
			
				
	
	
	
	
	
	
	
	
	
 Hi
 
 Assuming you are using automation to run excel code, then something like thisOriginally posted by clohI am using Access to write the VB code that generates a graph in Excel. I ask for the user to input the path and file name that they want. How would I go about saving the file using those two pieces of information? Thanks!
 
 orCode:File = YourPath & "\" YourFile ActiveWorkbook.SaveAs FileName:=FileName 
 
 Workbooks("Work bookName").Save
 
 
 The best way to find out this and any other excel code is to use the macro recorder in excel.
 
 ??
 
 
 MTB
Comment