Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2006

Tip: Looking for answers? Try searching our database.

Documentation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
paul johnson - 24 Jan 2006 09:29 GMT
I have written an excel application and now need to document it.

Is there a quick way to document (print) all the code and all the sheet
calculations?

Many Thanks

Paul
Necessitysslave - 24 Jan 2006 12:00 GMT
The below is a macro to create a new sheet with the formulas visible
and printable
however I've left formatting (resizing of cells and so forth) to you so
that it is readable on the printed document.

Sub printable()
Dim row As Integer
Dim col As Integer
Dim sheetname As String
sheetname = ActiveSheet.Name
ActiveWorkbook.Worksheets.Add
ActiveSheet.Name = "printable_" & sheetname
Worksheets("printable_" & sheetname).Range("A1:IV65536").NumberFormat =
"@"
For col = 1 To 30
   For row = 1 To 30
       If Worksheets(sheetname).Cells(col, row).Formula = "" Then
           Worksheets("printable_" & sheetname).Cells(col, row) =
Worksheets(sheetname).Cells(col, row).Value
       Else
           Worksheets("printable_" & sheetname).Cells(col, row) =
Worksheets(sheetname).Cells(col, row).Formula
       End If
   Next row
Next col
End Sub

Hope this helps
paul johnson - 24 Jan 2006 15:01 GMT
test
>I have written an excel application and now need to document it.
>
[quoted text clipped - 4 lines]
>
> Paul
NickHK - 25 Jan 2006 09:31 GMT
Paul,
Printing the code from the VBA IDE should not be a problem.
As for the sheets, you mean formulae ?
Go to Options and select "Formuals", then print.

NickHK

> I have written an excel application and now need to document it.
>
[quoted text clipped - 4 lines]
>
> Paul
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.