Odd behavior on margin change



I have to loop through a significant number of charts applying numerous
changes in formats. The speed of operation is fast when I am operating my
computer stand-alone. However, when I am connect to the internet when
running my macros the speed slows down tremendeously and I can observe
significant activity on my wireless router and cable modem. The speed is
faster in the docking station at work. However, it is slower than when
stand-alone.

I narrowed down the calls that cause the slowdown and router and cable modem
activity. I want the page margins to be different than the defaults and
allow the user to set them. The following code causes the problem, which I
simplified for example:

Private Function FormatChart(oChart As Chart, ...other parameters)
With oChart
With .PageSetup
.LeftMargin = Application.InchesToPoints(0.25)
.RightMargin = Application.InchesToPoints(0.25)
.TopMargin = Application.InchesToPoints(0.25)
.BottomMargin = Application.InchesToPoints(0.25)
End With
' other code
End With
' other code
End Function

It doesn't matter whether I enter a value in points or have the app
calculate it. The workbook is self-contained, not linked to another workbook.

Any ideas?

Thanks,
John
.



Relevant Pages

  • Re: REQ: Advice on linking home PCs
    ... call your cable company and ask them if they provide a home wireless networking solution. ... If you want to do it yourself, pick up a wireless router, pick up a couple of PCI wireless cards for your desktop pcs, set up file and print sharing for what you want to share, and you are done. ... Your cable modem may not play nicely with your newly acquired wireless router and it is possible that you will have to clone the MAC address of the PC that is currently connected to cable modem in order to get the wireless router to connect. ...
    (alt.os.windows-xp)
  • Re: Problems accessing Exchange Server from the VPN
    ... his wireless router was giving him the same exact ... simply go into network file shares and directly access your Exchange ... Server mailbox with Outlook like you would in the office. ... His home setup is a cable modem with a Linksys wireless router; ...
    (microsoft.public.exchange.connectivity)
  • Re: OT. Ethernet
    ... Unplug it from your wireless router and plug it into your ... But I think it has an ethernet card (I bought it used a few years ago ... It looks like is has a plug in the back that's kind of like a phone ... That's the kind of plug my cable modem has ...
    (rec.gambling.poker)
  • Re: cable internet puzzle
    ... If so does it give any trouble at the same time? ... cable modem, and connecting directly from my computer to the cable modem ... an ethernet cable to get the wireless router out of the picture. ... I've tried another laptop once when I was having ...
    (microsoft.public.windowsxp.general)
  • RE: Importing unopened worksheet into an open Workbook
    ... Sub Retrieve_Info ... Private Function GetValue ... ' Retrieves a value from a closed workbook ... > If an unopened Excel Workbook only contains a single worksheet, ...
    (microsoft.public.excel.misc)