close

I am wondering if anyone could help me with some code to set the view
settings for all of my sheets to 100% zoom, and select cell A1...or rather be
in the quot;control homequot; position. I could certainly record a macro...but that
can be time consuming and inefficient as I have 64 worksheets in my
workbook. Thanks in advance for the help.

Found the answer and adapted it...so here is what worked.

For Each Sheet In ThisWorkbook.Worksheets
Sheet.Activate
ActiveWindow.Zoom = 100
Range(quot;A1quot;).Select
Next

quot;Roundyquot; wrote:

gt; I am wondering if anyone could help me with some code to set the view
gt; settings for all of my sheets to 100% zoom, and select cell A1...or rather be
gt; in the quot;control homequot; position. I could certainly record a macro...but that
gt; can be time consuming and inefficient as I have 64 worksheets in my
gt; workbook. Thanks in advance for the help.

I spoke to soon. It does select the cell I request...but the effect I am
looking for is that of Cntrl Home which moves A1 into view? Any help on this
one?

quot;Roundyquot; wrote:

gt; Found the answer and adapted it...so here is what worked.
gt;
gt; For Each Sheet In ThisWorkbook.Worksheets
gt; Sheet.Activate
gt; ActiveWindow.Zoom = 100
gt; Range(quot;A1quot;).Select
gt; Next
gt;
gt; quot;Roundyquot; wrote:
gt;
gt; gt; I am wondering if anyone could help me with some code to set the view
gt; gt; settings for all of my sheets to 100% zoom, and select cell A1...or rather be
gt; gt; in the quot;control homequot; position. I could certainly record a macro...but that
gt; gt; can be time consuming and inefficient as I have 64 worksheets in my
gt; gt; workbook. Thanks in advance for the help.

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()