% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reporting.R
\name{mb_to_excel}
\alias{mb_to_excel}
\title{Export an evaluation report to Excel}
\usage{
mb_to_excel(report, file)
}
\arguments{
\item{report}{An \code{mb_report} object.}

\item{file}{Output file path (must end in \code{.xlsx}).}
}
\value{
Invisibly, the file path.
}
\description{
Writes a multi-sheet workbook with one sheet per component:
summary, theory of change, plan, SMS ratings, confidence
ratings, cost-effectiveness, provenance.
}
\details{
Requires the \pkg{openxlsx} package (in Suggests).
}
\examples{
\donttest{
if (requireNamespace("openxlsx", quietly = TRUE)) {
  toc <- mb_theory_of_change(
    inputs = "Funding", activities = "Workshops",
    outputs = "Attendees", outcomes = "Skills",
    impact = "Employment"
  )
  rep <- mb_evaluation_report(toc = toc, name = "Skills uplift")
  tmp <- tempfile(fileext = ".xlsx")
  mb_to_excel(rep, tmp)
}
}
}
\seealso{
\code{\link[=mb_to_word]{mb_to_word()}}, \code{\link[=mb_to_latex]{mb_to_latex()}}.

Other reporting: 
\code{\link{mb_evaluation_report}()},
\code{\link{mb_to_latex}()},
\code{\link{mb_to_word}()}
}
\concept{reporting}
