-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxmlappend.sthlp
78 lines (58 loc) · 1.91 KB
/
xmlappend.sthlp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{smcl}
{* *! version 1.0.0 April 16, 2009 @ 18:22:04}{...}
{hi:help xmlappend}
{hline}
{title:Title}
{phang}
{cmd:xmlappend}{hline 3}Append a new sheet to an MS Excel XML file from a Stata data set
{p_end}
{title:Syntax}
{* put the syntax in what follows. Don't forget to use [ ] around optional items}
{p 8 17 2}
{cmd: xmlappend}
[{varlist}]
{ifin}
{help using}
{cmd:,}
{opt sheet(filename)}
{p_end}
{title:Description}
{pstd}
{cmd:xmlappend} can put all or part of the dataset in memory onto an
MS Excel workbook as a new sheet. If the workbook doesn't exist,
{cmd:xmlappend} creates a new workbook.
{p_end}
{title:Options}
{phang}{opt sheet} is a required option which names the sheet.
{p_end}
{title:Example(s)}
{phang}Create a workbook, and then append a sheet to it.{p_end}
{phang2}{cmd:. sysuse auto}{p_end}
{phang2}{cmd:. xmlappend using "splitauto.xml" if foreign, sheet(foreign)}{p_end}
{phang2}{cmd:. xmlappend using "splitauto.xml" if !foreign, sheet(domestic)}{p_end}
{title:Notes}
{pstd}Unlike {help xmlsave}, a {it:varlist} is not required. If no
{it:varlist} is given, all variables are exported.
{pstd}
{cmd:xmlappend} does not check to see if the given name for a sheet
already exists. This behavior might change in the future.
{pstd}
{cmd:xmlappend} will work only if it appends to workbooks created using
{help xmlsave} or {help xmlappend}. If you export a workbook from MS Excel,
and then use {cmd:xmlappend} to try to add pages, you will be disappointed.
{pstd}
This was put together rather quickly, and without a copy of MS Excel for
heavy duty testing. Please let me know if you experience any problems with it.
{title:Also see}
{psee}
Manual: {hi:[D] xmlsave}
{p_end}
{psee}
Online: help for {help xmlsave}
{p_end}
{title:Author}
{pstd}
Bill Rising, StataCorp{break}
email: [email protected]{break}
web: {browse "http://homepage.mac.com/brising":http://homepage.mac.com/brising}
{p_end}