Excel output from an Access query to include an excel formula in the cell -


i have database query results saved excel file. once there, need add column , insert formula make interactive worksheet.

is there way of having formula created in data base output? note not want results entered. want excel formula in cell. example in 1 cell enter =iferror(today()-i14+1,0) results in excel spreadsheet change base on date information viewed.

use cell formula property dynamically add formula:

range("a1").formula = "=text(now(),""mmm dd yyyy"")"  

ref: https://msdn.microsoft.com/en-us/library/office/ff838835.aspx


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -