Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to Maximize an Excel window and set it as preference i..

 
Goto page Previous  1, 2
   Macintosh computer (Home) -> Excel RSS
Next:  How to save window preference in Excel for OSX  
Author Message
whitecloud1

External


Since: Aug 18, 2006
Posts: 18



(Msg. 16) Posted: Tue Aug 29, 2006 12:28 pm
Post subject: Re: How to Maximize an Excel window and set it as preference in Office X [Login to view extended thread Info.]
Archived from groups: microsoft>public>mac>office>excel (more info?)

JE McGimpsey wrote:
> In article <1156804433.884252.157540.RemoveThis@i3g2000cwc.googlegroups.com>,
> "whitecloud1" <jbonner.RemoveThis@oceanfree.net> wrote:
>
> > Thanks again. I mentioned I had a problem when I followed your
> > instructions:
> > On opening a new file I get the following message:
> >
> > Compile error: User-defined type not defined.
> >
> > In the "This Workbook" (Below sheet 1 in Microsoft Excel Objects) the
> > followin is highlighted in blue: New WindowHandler
> > If I press Ok, then the first line is highlighted in yellow with an
> > arrow pointing to it:
> > "Private Sub Workbook_Open()"
> >
> > Have I misinterpreted your instructions somewhere?
> > How do I name the created file MyWindowHandler or whatever you said?
> > Is it done by the visual basic code anyway?
>
> Yes, you misinterpreted my instructions. WindowHandler is not a file
> name, it's the name you assign to a Class module (using the property
> browser in the Visual Basic Editor). Class modules (which you can
> generate using Insert/Class Module) are different from regular code
> modules in that they define a class object which can then be used to
> create additional objects.
>
> By creating an object and assigning it to the clsMyWindow, using
>
> Private Sub Workbook_Open()
> Set clsMyWindow = New WindowHandler
> End Sub
>
> in the ThisWorkbook module of your Personal Macro Workbook (or, as I do
> it, my startup add-in), you establish an object that contains a
> WithEvents variable (oApp) that responds to application-level events,
> such as _WorkbookOpen
>
> I put a slightly modified sample add-in at
>
> ftp://ftp.mcgimpsey.com/excel/whitecloud1_demo.xla
>
> Put it in your startup folder. It's unprotected so you can set
> breakpoints and see how it works.

Thanks for the add-in. It only worked when I removed the Personal macro
workbook from the Excel folder of Startup. If I could modify the script
to open at 150% and move it slightly up and to the right it would help.
I had already set my "Workbook" default to open at 150% and this script
was reducing new files after opening.

I tried changing the Class module name from 'Class 1" but it is
impossible to do this in the browser without Excel shutting down as a
result. I don't know how you renamed yours. Perhaps I'll try this in
Windows and maybe transfer it to mac??

At this stage an "automatic setting" is just an intellectual challenge
for me, as I have already set a 3-key keyboard macro to move any opened
excel file (all at 150% now anyway) a little up and to the left.
I think I'll give up on it for now.

Best wishes,
John.

 >> Stay informed about: How to Maximize an Excel window and set it as preference i.. 
Back to top
Login to vote
JE McGimpsey

External


Since: Mar 07, 2004
Posts: 3828



(Msg. 17) Posted: Wed Aug 30, 2006 6:26 am
Post subject: Re: How to Maximize an Excel window and set it as preference in Office X [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <1156879725.311277.11730.DeleteThis@p79g2000cwp.googlegroups.com>,
"whitecloud1" <jbonner.DeleteThis@oceanfree.net> wrote:

> I tried changing the Class module name from 'Class 1" but it is
> impossible to do this in the browser without Excel shutting down as a
> result. I don't know how you renamed yours. Perhaps I'll try this in
> Windows and maybe transfer it to mac??

This was a known bug when Office 2004 was first released, but subsequent
updates have fixed it. Are you using an updated version of XL? Use
Office Autoupdate if not - there are a number of small fixes.

 >> Stay informed about: How to Maximize an Excel window and set it as preference i.. 
Back to top
Login to vote
whitecloud1

External


Since: Aug 18, 2006
Posts: 18



(Msg. 18) Posted: Wed Aug 30, 2006 11:52 am
Post subject: Re: How to Maximize an Excel window and set it as preference in Office X [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

JE McGimpsey wrote:
> In article <1156879725.311277.11730.RemoveThis@p79g2000cwp.googlegroups.com>,
> "whitecloud1" <jbonner.RemoveThis@oceanfree.net> wrote:
>
> > I tried changing the Class module name from 'Class 1" but it is
> > impossible to do this in the browser without Excel shutting down as a
> > result. I don't know how you renamed yours. Perhaps I'll try this in
> > Windows and maybe transfer it to mac??
>
> This was a known bug when Office 2004 was first released, but subsequent
> updates have fixed it. Are you using an updated version of XL? Use
> Office Autoupdate if not - there are a number of small fixes.

Some GOOD NEWS!
I think I figured out what I was doing wrong.

First of all I'm using a version of Office which is earlier than 2004
(Office X for Mac, which was Microsoft's first version). I did download
2 updates from Mactopia but they didn't solve the shutdown problem, So
I had to think again and came up with what I think is the answer:

I discovered that in order to add the VB scripts I had to use the
"UNHIDE" command in Window drop down menu to see the Personal Macro
Workbook. It wasn't enough just to do the editing in a new excel
workbook and just save it to the Personal Macro Workbook.

In order to change the name of the Class Module in browser, I had to
use copy and paste as it stll shutdown if I tried to delete the
previous name before typing another.

Anyway, the code you suggested does work, and the new working windows
are nearer to the top left corner below the 2 toolbars. However I still
need to increase the magnification to 150% and make a slight adjustment
to the window location. and also drag to the bottom right corner to get
full screen,

I added a keyboard macro to do these 3 things but it must be possible
to add or adjust the classs module to achieve this. What do you think?
Thanks for your patience!

John.
 >> Stay informed about: How to Maximize an Excel window and set it as preference i.. 
Back to top
Login to vote
whitecloud1

External


Since: Aug 18, 2006
Posts: 18



(Msg. 19) Posted: Wed Aug 30, 2006 12:51 pm
Post subject: Re: How to Maximize an Excel window and set it as preference in Office X [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

whitecloud1 wrote:
> JE McGimpsey wrote:
> > In article <1156879725.311277.11730 DeleteThis @p79g2000cwp.googlegroups.com>,
> > "whitecloud1" <jbonner DeleteThis @oceanfree.net> wrote:
> >
> > > I tried changing the Class module name from 'Class 1" but it is
> > > impossible to do this in the browser without Excel shutting down as a
> > > result. I don't know how you renamed yours. Perhaps I'll try this in
> > > Windows and maybe transfer it to mac??
> >
> > This was a known bug when Office 2004 was first released, but subsequent
> > updates have fixed it. Are you using an updated version of XL? Use
> > Office Autoupdate if not - there are a number of small fixes.
>
> Some GOOD NEWS!
> I think I figured out what I was doing wrong.
>
> First of all I'm using a version of Office which is earlier than 2004
> (Office X for Mac, which was Microsoft's first version). I did download
> 2 updates from Mactopia but they didn't solve the shutdown problem, So
> I had to think again and came up with what I think is the answer:
>
> I discovered that in order to add the VB scripts I had to use the
> "UNHIDE" command in Window drop down menu to see the Personal Macro
> Workbook. It wasn't enough just to do the editing in a new excel
> workbook and just save it to the Personal Macro Workbook.
>
> In order to change the name of the Class Module in browser, I had to
> use copy and paste as it stll shutdown if I tried to delete the
> previous name before typing another.
>
> Anyway, the code you suggested does work, and the new working windows
> are nearer to the top left corner below the 2 toolbars. However I still
> need to increase the magnification to 150% and make a slight adjustment
> to the window location. and also drag to the bottom right corner to get
> full screen,
>
> I added a keyboard macro to do these 3 things but it must be possible
> to add or adjust the classs module to achieve this. What do you think?
> Thanks for your patience!
>
> John.

Message Part 2:
I think I've cracked it.

Having added a macro to make the 3 adjustments, I examined the
dimensions created in that macro for desired window setting and made
just 5 numerical changes for Top, Left, Width, Height and Zoom using
your script and Eureka! It's working without the need for the keyboard
macro to be typed.

Many thanks and best wishes,
John
 >> Stay informed about: How to Maximize an Excel window and set it as preference i.. 
Back to top
Login to vote
whitecloud1

External


Since: Aug 18, 2006
Posts: 18



(Msg. 20) Posted: Sun Sep 10, 2006 1:14 pm
Post subject: Re: How to Maximize an Excel window and set it as preference in Office X [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

whitecloud1 wrote:
> whitecloud1 wrote:
> > JE McGimpsey wrote:
> > > In article <1156879725.311277.11730 DeleteThis @p79g2000cwp.googlegroups.com>,
> > > "whitecloud1" <jbonner DeleteThis @oceanfree.net> wrote:
> > >
> > > > I tried changing the Class module name from 'Class 1" but it is
> > > > impossible to do this in the browser without Excel shutting down as a
> > > > result. I don't know how you renamed yours. Perhaps I'll try this in
> > > > Windows and maybe transfer it to mac??
> > >
> > > This was a known bug when Office 2004 was first released, but subsequent
> > > updates have fixed it. Are you using an updated version of XL? Use
> > > Office Autoupdate if not - there are a number of small fixes.
> >
> > Some GOOD NEWS!
> > I think I figured out what I was doing wrong.
> >
> > First of all I'm using a version of Office which is earlier than 2004
> > (Office X for Mac, which was Microsoft's first version). I did download
> > 2 updates from Mactopia but they didn't solve the shutdown problem, So
> > I had to think again and came up with what I think is the answer:
> >
> > I discovered that in order to add the VB scripts I had to use the
> > "UNHIDE" command in Window drop down menu to see the Personal Macro
> > Workbook. It wasn't enough just to do the editing in a new excel
> > workbook and just save it to the Personal Macro Workbook.
> >
> > In order to change the name of the Class Module in browser, I had to
> > use copy and paste as it stll shutdown if I tried to delete the
> > previous name before typing another.
> >
> > Anyway, the code you suggested does work, and the new working windows
> > are nearer to the top left corner below the 2 toolbars. However I still
> > need to increase the magnification to 150% and make a slight adjustment
> > to the window location. and also drag to the bottom right corner to get
> > full screen,
> >
> > I added a keyboard macro to do these 3 things but it must be possible
> > to add or adjust the classs module to achieve this. What do you think?
> > Thanks for your patience!
> >
> > John.
>
> Message Part 2:
> I think I've cracked it.
>
> Having added a macro to make the 3 adjustments, I examined the
> dimensions created in that macro for desired window setting and made
> just 5 numerical changes for Top, Left, Width, Height and Zoom using
> your script and Eureka! It's working without the need for the keyboard
> macro to be typed.
>
> Many thanks and best wishes,
> John

Now to do the same for Word. How do I modify the VB script(s) to do the
same in Word?
Best wishes,
JB
 >> Stay informed about: How to Maximize an Excel window and set it as preference i.. 
Back to top
Login to vote
Display posts from previous:   
   Macintosh computer (Home) -> Excel All times are: Pacific Time (US & Canada) (change)
Goto page Previous  1, 2
Page 2 of 2

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]