Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
GUS GUS is offline
external usenet poster
 
Posts: 45
Default PREVIEW IN USERORM

I have a large sheet (80 columns,160 rows) which probably don't fit in user
screen , so i want something to work as navigator to the sheet.
I thought probably a modeless userform with small sheet preview inside it
..
If that's possible then after clicking to the desired area (in the userform
of course) the sheet can scroll in that area (probably with cell select or
scroll).
Can this be done ?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default PREVIEW IN USERORM

Hi Gus,

I have a large sheet (80 columns,160 rows) which probably don't fit in user
screen , so i want something to work as navigator to the sheet.
I thought probably a modeless userform with small sheet preview inside it
..
If that's possible then after clicking to the desired area (in the userform
of course) the sheet can scroll in that area (probably with cell select or
scroll).
Can this be done ?


Good question. Of the top of my head, you'd need to do the following:

1. Copy the usedrange as a picture
2. Use the PastePicture routine from my web site to copy that to a Picture
control on the userform.
3. Hook the MouseDown event of the Picture control (which gives the x,y
coordinates of the pointer) to identify where they user clicked and move
there.
4. Hook the Userform_Active event to refresh the display of the sheet as the
user reactives the form (which might have the unfortunate side-effect of
clearing the clipboard).

Regards

Stephen Bullen
Microsoft MVP - Excel
www.BMSLtd.co.uk

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
set Print Preview to "preview" page that was being worked on? ACULAK Excel Discussion (Misc queries) 0 October 5th 07 02:06 AM
Preview tiler65 Excel Worksheet Functions 3 December 9th 06 06:49 PM
print preview v page break preview SamB Excel Discussion (Misc queries) 0 November 16th 06 05:09 PM
Preview sussertown Excel Discussion (Misc queries) 4 August 29th 06 06:06 PM
Cant Preview - How do I fix it? T Excel Discussion (Misc queries) 1 December 4th 04 11:09 AM


All times are GMT +1. The time now is 05:21 AM.

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

About Us

"It's about Microsoft Excel"