Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Hide a Spreadsheet in an Add-in

I'm looking at have a userform saved in an Excel Application. The reason for
it being a userform is to give greater control over the options. Once a user
has selected the information and how they want to present it I want the
option to print it out.

Tried printing the userform and the quality is rather poor, and it doesn't
look particularly good (and isn't in Landscape) so I want to have the
information put into an excel spreadsheet and print the sheet. I'd rather
avoid linking to a specific workbook saved on the server to use as a
template, and noticed when saving the userform as an add-in that the
worksheet objects are still present in ths add-in.

Is there anyway of saving the worksheets in an addin, and being able to
reveal them and populate them?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Hide a Spreadsheet in an Add-in

To expose an addin toggle the IsAddin property which is found in the
properties for thisworkbook. My suggestion would be to create the template
sheet in your addin and then copy that sheet to a new workbook when you want
to expose it.
--
HTH...

Jim Thomlinson


"PaulW" wrote:

I'm looking at have a userform saved in an Excel Application. The reason for
it being a userform is to give greater control over the options. Once a user
has selected the information and how they want to present it I want the
option to print it out.

Tried printing the userform and the quality is rather poor, and it doesn't
look particularly good (and isn't in Landscape) so I want to have the
information put into an excel spreadsheet and print the sheet. I'd rather
avoid linking to a specific workbook saved on the server to use as a
template, and noticed when saving the userform as an add-in that the
worksheet objects are still present in ths add-in.

Is there anyway of saving the worksheets in an addin, and being able to
reveal them and populate them?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Hide a Spreadsheet in an Add-in

I don't really follow what you want to do. Print the form but the quality is
not good? So you want to put info on a sheet, fair enough but why not simply
add a new workbook and put your info on that.

Workbooks.Add

You can of course keep info on a sheet in your addin which of course will
remain hidden. You could update info on the sheet and save when required.
You could print it in the normal way or if you want to make it viewable
simply do this -

Thisworkbook.Worksheets(1).Copy

Regards,
Peter T


"PaulW" wrote in message
...
I'm looking at have a userform saved in an Excel Application. The reason

for
it being a userform is to give greater control over the options. Once a

user
has selected the information and how they want to present it I want the
option to print it out.

Tried printing the userform and the quality is rather poor, and it doesn't
look particularly good (and isn't in Landscape) so I want to have the
information put into an excel spreadsheet and print the sheet. I'd rather
avoid linking to a specific workbook saved on the server to use as a
template, and noticed when saving the userform as an add-in that the
worksheet objects are still present in ths add-in.

Is there anyway of saving the worksheets in an addin, and being able to
reveal them and populate them?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Hide a Spreadsheet in an Add-in

I don't want to add a workbook and then have 500 lines of code to get the
text and formatting right before adding in the figures.

Thisworkbook.Worksheets(1).Copy


Works perfectly thanks. Now I can set it all out and just run that then put
the data in so the user can print/save whatever they want.#

Cheers!


"Peter T" wrote:

I don't really follow what you want to do. Print the form but the quality is
not good? So you want to put info on a sheet, fair enough but why not simply
add a new workbook and put your info on that.

Workbooks.Add

You can of course keep info on a sheet in your addin which of course will
remain hidden. You could update info on the sheet and save when required.
You could print it in the normal way or if you want to make it viewable
simply do this -

Thisworkbook.Worksheets(1).Copy

Regards,
Peter T


"PaulW" wrote in message
...
I'm looking at have a userform saved in an Excel Application. The reason

for
it being a userform is to give greater control over the options. Once a

user
has selected the information and how they want to present it I want the
option to print it out.

Tried printing the userform and the quality is rather poor, and it doesn't
look particularly good (and isn't in Landscape) so I want to have the
information put into an excel spreadsheet and print the sheet. I'd rather
avoid linking to a specific workbook saved on the server to use as a
template, and noticed when saving the userform as an add-in that the
worksheet objects are still present in ths add-in.

Is there anyway of saving the worksheets in an addin, and being able to
reveal them and populate them?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to hide 0.00 on spreadsheet with formula? Tammy4 Excel Worksheet Functions 3 July 10th 09 04:37 PM
hide row on spreadsheet Graham Excel Discussion (Misc queries) 3 June 25th 09 03:10 PM
Want to Hide columns in spreadsheet but NOT hide data in chart. KrispyData Charts and Charting in Excel 1 March 20th 09 04:45 PM
Hide the spreadsheet David Excel Programming 6 September 24th 06 09:48 PM
how do you hide the #DIV/0! in a blank spreadsheet? John Gentile Excel Discussion (Misc queries) 2 February 9th 06 10:02 PM


All times are GMT +1. The time now is 04:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"