Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default to display content of worksheet on a user form in visual basic

In essence I would like to display the content of my excel work book in a
user form in Visual Basic. Can anybody please give me some advice on how to
achieve this. Be as detailed as possible since I am still very new at Visual
Basic.
Thank you.
JM
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default to display content of worksheet on a user form in visual basic

Using a UserForm in Excel 2002...
In the VBE, show the Toolbox then under the Tools menu, select "Additional Controls"
and look for "Microsoft Office Spreadsheet" and checkmark it.
After you add the control to the userform, you can copy your worksheet and paste
it into the control.
Another way (but it doesn't look as good) would be to add an Image control to the
user form and then paste a "picture" of your spreadsheet directly into the "picture"
property in the properties window (yes, it works).
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"JohannM"
wrote in message
In essence I would like to display the content of my excel work book in a
user form in Visual Basic. Can anybody please give me some advice on how to
achieve this. Be as detailed as possible since I am still very new at Visual
Basic.
Thank you.
JM
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default to display content of worksheet on a user form in visual basic

Hello Jim,
Thanks for the advice and I see that it will work. However, I seem to have a
problem (as newbies do) I can only access the additional controls dialog from
witin excel but not from within VBE. Can you help me in this regard?
Thank you
JM


"Jim Cone" wrote:

Using a UserForm in Excel 2002...
In the VBE, show the Toolbox then under the Tools menu, select "Additional Controls"
and look for "Microsoft Office Spreadsheet" and checkmark it.
After you add the control to the userform, you can copy your worksheet and paste
it into the control.
Another way (but it doesn't look as good) would be to add an Image control to the
user form and then paste a "picture" of your spreadsheet directly into the "picture"
property in the properties window (yes, it works).
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"JohannM"
wrote in message
In essence I would like to display the content of my excel work book in a
user form in Visual Basic. Can anybody please give me some advice on how to
achieve this. Be as detailed as possible since I am still very new at Visual
Basic.
Thank you.
JM

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default to display content of worksheet on a user form in visual basic

It seems to work like this...
You must have a form added to the project.
The Toolbox must be displayed.
Then the "Additional Controls" menu item is enabled.
(or you can right-click the Toolbox)
--
Jim Cone
San Francisco, USA
http://www.officeletter.com/blink/specialsort.html



"JohannM"
wrote in message
Hello Jim,
Thanks for the advice and I see that it will work. However, I seem to have a
problem (as newbies do) I can only access the additional controls dialog from
witin excel but not from within VBE. Can you help me in this regard?
Thank you
JM


"Jim Cone" wrote:

Using a UserForm in Excel 2002...
In the VBE, show the Toolbox then under the Tools menu, select "Additional Controls"
and look for "Microsoft Office Spreadsheet" and checkmark it.
After you add the control to the userform, you can copy your worksheet and paste
it into the control.
Another way (but it doesn't look as good) would be to add an Image control to the
user form and then paste a "picture" of your spreadsheet directly into the "picture"
property in the properties window (yes, it works).
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"JohannM"
wrote in message
In essence I would like to display the content of my excel work book in a
user form in Visual Basic. Can anybody please give me some advice on how to
achieve this. Be as detailed as possible since I am still very new at Visual
Basic.
Thank you.
JM

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
explanation of codes in Visual Basic when creating User form Rachel New Users to Excel 2 November 4th 09 11:19 PM
visual basic user form date format dd/mm/yy not mm/dd/yy DarrenO Excel Discussion (Misc queries) 1 March 28th 07 01:56 AM
How to display unicode character in Visual Basic script. kiendt Excel Programming 0 May 16th 06 01:41 AM
Inserting Form form Visual Basic... thomas Excel Programming 3 July 25th 05 10:01 PM
Using Visual Basic form to enter data Stephen Carpineta \(Matco Electric\) Excel Programming 1 September 29th 03 08:20 PM


All times are GMT +1. The time now is 11:16 AM.

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"