% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reporting.R
\name{gb_to_excel}
\alias{gb_to_excel}
\title{Export an appraisal to Excel}
\usage{
gb_to_excel(appraisal, file)
}
\arguments{
\item{appraisal}{A \code{gb_appraisal} object.}

\item{file}{Output file path (must end in \code{.xlsx}).}
}
\value{
Invisibly, the file path.
}
\description{
Writes a multi-sheet workbook: summary, cashflow, present
values, provenance.
}
\details{
Requires the \code{openxlsx} package (in Suggests). Install with
\code{install.packages("openxlsx")} if not present.
}
\examples{
\donttest{
if (requireNamespace("openxlsx", quietly = TRUE)) {
  app <- gb_appraise(c(100, 0, 0, 0, 0), c(0, 30, 30, 30, 30))
  tmp <- tempfile(fileext = ".xlsx")
  gb_to_excel(app, tmp)
}
}
}
\seealso{
\code{\link[=gb_to_latex]{gb_to_latex()}}, \code{\link[=gb_to_word]{gb_to_word()}}.

Other reporting: 
\code{\link{gb_cost_per_unit}()},
\code{\link{gb_headline}()},
\code{\link{gb_to_latex}()},
\code{\link{gb_to_word}()}
}
\concept{reporting}
