#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default VBscript

Hi,
If the workbook is maximized within the Excel application, it returns an
error.
If the workbook is not maximized , it set its window to the position Top =
-2. Position Top=0 starts right bellow the toolbar area. So, with Top=-2, the
toolbar-area would overlay a bit over the workbook window.

Regards
Sebastien

"raji" wrote:

Hello,
What does the top =-2 mean in this scipt. I recorded the macro and was using
it for
another sheet, and the macro stopped. When I pressed debug it pointed me to
this line. Did something change in my new sheet, how would I know. Is there a
way to fix that variable ?

Selection.Sort Key1:=Range("D2"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
With ActiveWindow
.Top = -2
.Left = 5.5
End With

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
Run VBScript from Excel Amy M Excel Discussion (Misc queries) 4 September 19th 08 09:07 PM
VBscript raji Excel Programming 0 September 22nd 04 08:03 PM
Pastespecial via vbscript not working msnews.microsoft.com[_7_] Excel Programming 2 December 20th 03 02:37 PM
embed excel in ie using vbscript balaji kandan Excel Programming 0 November 22nd 03 09:47 AM
How to move worksheet from vbscript Robert Stober Excel Programming 1 October 9th 03 10:19 AM


All times are GMT +1. The time now is 02:05 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"