<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Otak Atik [dot] Com &#187; Macro</title>
	<atom:link href="http://www.otakatik.com/tag/macro/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.otakatik.com</link>
	<description>Empowering Computer</description>
	<lastBuildDate>Wed, 25 Jan 2012 09:06:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Zoom Microsoft Excel Cell with Macro</title>
		<link>http://www.otakatik.com/zoom-microsoft-excel-cell-with-macro/</link>
		<comments>http://www.otakatik.com/zoom-microsoft-excel-cell-with-macro/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 02:03:40 +0000</pubDate>
		<dc:creator>Edi Kwie</dc:creator>
				<category><![CDATA[Office Apps]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[Macro]]></category>

		<guid isPermaLink="false">http://www.otakatik.com/?p=270</guid>
		<description><![CDATA[When we&#8217;re demonstrating our report to our client or boss maybe sometime we need to focus on a cell in Microsoft Excel project. And as we know Microsoft Excel doesn&#8217;t give the builtin function to zoom only a cell. So I will share to make it with Macro. OK, Microsoft Excel can give us flexibility [...]]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 3px;" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0099/logo.png" alt="" width="342" height="140" align="left" />When we&#8217;re  demonstrating our report to our client or boss maybe sometime we need to focus on a cell in Microsoft Excel project. And as we know Microsoft Excel doesn&#8217;t give the builtin function to zoom only a cell.<span id="more-270"></span></p>
<p>So I will share to make it with Macro.</p>
<p>OK, Microsoft Excel can give us flexibility to make our own tool with Macro, just follow these steps to make it.</p>
<ol>
<li>Open Microsoft Excel, you may open it by click <strong>Start</strong> -&gt; <strong>All Programs</strong> -&gt; <strong>Microsoft Excel</strong> or click <strong>Start</strong> -&gt; <strong>Run</strong> menu then type <code>excel</code> in textbox then press Enter key.<br />
<img title="Open Excel" src="http://www.otakatik.com/wp-content/uploads/general/run_excel.jpg" alt="Open Excel" /></li>
<li>To make a macro, click <strong>Tools</strong> -&gt; <strong>Macro</strong> -&gt; <strong>Visual Basic Editor</strong> menu.<br />
<img title="Macro menu" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0099/tools_macro_1.jpg" alt="Macro menu" /></li>
<li>After Visual Basic Editor is open, make a module with click <strong>Insert</strong> -&gt; <strong>Module</strong> menu.<br />
<img title="Insert a module" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0099/insert_module_2.jpg" alt="Insert a module" /></li>
<li>Then type this code in its workspace:
<pre lang="vb" line="1">Sub ZoomIt()
Dim my_range As Range
Dim zoom_in As Single
Set my_range = Selection
zoom_in = 5

For Each p In ActiveSheet.Pictures
    If p.Name = "ZoomIt" Then
        p.Delete
        Exit For
    End If
Next

my_range.CopyPicture appearance:=xlScreen, Format:=xlPicture
ActiveSheet.Pictures.Paste.Select
    With Selection
        .Name = "ZoomIt"
        With .ShapeRange
            .ScaleWidth zoom_in, msoFalse, msoScaleFromTopLeft
            .ScaleHeight zoom_in, msoFalse, msoScaleFromTopLeft
            With .Fill
                .ForeColor.SchemeColor = 9
                .Visible = msoTrue
                .Solid
            End With
        End With
    End With
my_range.Select

Set my_range = Nothing
End Sub</pre>
<p><img title="type the code" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0099/type_code_3.jpg" alt="Type the code" /></li>
<li>Recheck the code and if make sure that the code is right (you may copy then paste the code from above and if you&#8217;re ensuring it right click <strong>Debug</strong> -&gt; <strong>Compile VBA Project</strong> menu.<br />
<img title="Compile the script" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0099/debug_compile_4.jpg" alt="Compile the script" /></li>
<li>Close the Visual Basic Editor window.</li>
<li>Right click on empty space in Microsoft Excel toolbar area then click <strong>Customize</strong> menu.<br />
<img title="Customize menu" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0099/customize_menu_5.jpg" alt="Customize menu" /></li>
<li>Click <strong>Commands</strong> tab and click <strong>Macros</strong> category then click <strong>Custom Button</strong> commands.<br />
<img title="Customize the button" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0099/custom_button_6.jpg" alt="Customize the button" /></li>
<li>Drag it to toolbar that you want (I choose to put it beside Help icon).<br />
<img title="Drag onto toolbar" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0099/drag_toolbar_7.jpg" alt="Drag onto toolbar" /></li>
<li>And if you&#8217;re doing it right you can see a new icon on toolbar.<br />
<img title="The button" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0099/icon_toolbar_8.jpg" alt="The button" /></li>
<li>Then assign the macro with right click the icon and click <strong>Assign Macro</strong> menu.<br />
<img title="Right click the icon" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0099/right_click_icon_9.jpg" alt="Right click the icon" /></li>
<li>Choose <strong>ZoomIt Macro</strong> in list then click <strong>OK</strong> button.<br />
<img title="Assign the macro" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0099/assign_macro_10.jpg" alt="Assign the macro" /></li>
<li>To make it more user friendly, right click the icon and change its name and view it in <strong>Image &amp; Text</strong> mode.<br />
<img title="Change its name" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0099/change_name_11.jpg" alt="Change its name" /></li>
<li>And look the icon looking now.<br />
<img title="The final button" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0099/result_toolbar_12.jpg" alt="The final button" /></li>
<li>Now, try to type some data in cell.<br />
<img title="Type the sample data" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0099/type_data_13.jpg" alt="Type the data" /></li>
<li>Try to move cursor on a cell then click the macro icon on toolbar.<br />
<img title="Click macro button" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0099/click_icon_14.jpg" alt="Click macro button" /></li>
<li>Here is the result.<br />
<img title="Result" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0099/result_15.jpg" alt="Result" /></li>
<li>To close the zoomed cell just click the zoomed cell then press <strong>Delete</strong> key.<br />
<img title="Back to normal mode" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0099/delete_16.jpg" alt="Back to normal mode" /></li>
</ol>
<p><em>(article no: 0099)</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.otakatik.com/zoom-microsoft-excel-cell-with-macro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

