Total amount of euros poured into the American economy: €365. Considering most of these things are either more expense in Belgium or even impossible to find anyway, all in all a very good deal!
I also picked up some cigarettes for my sister-in-law, at bargain prices (REALLY).
It's quite strange to walk around an area that just breathes "Welcome to America" and only minutes after that get confronted with the evergrowing public waste problem in Naples..
<style type="text/css">
body {
/* Some other stuff here */
background-image: url(http://localhost/images/bg.jpg);
background-repeat: repeat-x;
}
</style>
<body>
<!-- Some other stuff here -->
</body>
The background was the element I wanted to hide. I ended up with something like this:
<style type="text/css">
body {
/* Some other stuff here */
background-image: url(http://localhost/images/bg.jpg);
background-repeat: repeat-x;
}
</style>
<script type="text/javascript" language="javascript" src="jquery.js"></script>
<body>
<!-- Some other stuff here -->
<a id="mini" href="#" OnClick="
if ( $('#mini').text() == '[-]' ) { $('#mini').text('[+]') } else { $('#mini').text('[-]'); }
if ($('body').css('background-image') == 'url(http://localhost/images/bg.jpg)')
{ $('body').css('background-image','url()'); } else
{ $('body').css('background-image','url(http://localhost/images/bg.jpg)'); }
return false;">[-]</a>
<!-- and here -->
</body>
This adds a small [-] link that, when clicked, clears the background and changes to a [+]. Clicking again switches back.
Public Sub GenDoc()
Dim WordDocument As Word.Document
Dim TableTemplate As Word.Document
Dim DocumentTemplate As Word.Document
Dim WordApplication As Word.Application
Dim DocumentRange As Word.Range
Dim ExcelWorksheet As Excel.Worksheet
Dim i As Integer
Set WordApplication = CreateObject("Word.Application")
' Template for fancy introduction
' Open as read-only
Set DocumentTemplate = WordApplication.Documents.Open("template1.doc", False, True)
' Template for fancy layout per Excel row
' Open as read-only
Set TableTemplate = WordApplication.Documents.Open("template2.doc", False, True)
WordApplication.Visible = False
Set WordDocument = WordApplication.Documents.Add
Set DocumentRange = WordDocument.Content
' This bit apparently guarantees that pasted blocks are appended, not overwriting the selected block
DocumentRange.Collapse Direction:=wdCollapseEnd
DocumentTemplate.Content.Copy
' Paste the fancy header into the newly created document
DocumentRange.Paste
Set ExcelWorksheet = ThisWorkbook.Worksheets.Item(1)
' Assume 100 columns
For i = 1 To 100
DocumentRange.Collapse Direction:=wdCollapseEnd
' Paste the formatted table stuff
TableTemplate.Content.Copy
DocumentRange.Paste
' In the fancy template, I had some markers..
' Replace counter - NUMBERMARKER
WordDocument.ActiveWindow.Selection.Find.ClearFormatting
WordDocument.ActiveWindow.Selection.Find.Replacement.ClearFormatting
With WordDocument.ActiveWindow.Selection.Find
.Text = "NUMBERMARKER"
' Replace NUMBERMARKER with i
.Replacement.Text = i
.Wrap = wdFindStop
.Format = False
.MatchWholeWord = True
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
WordDocument.ActiveWindow.Selection.Find.Execute Replace:=wdReplaceAll
Next i
' Wrap it up
DocumentTemplate.Close
TableTemplate.Close
WordApplication.Visible = True
WordApplication.Activate
End Sub
I also had some fancy progress bar in there somewhere.. I'm getting quite good at this drive-by VBA coding.