VBA Ads

Showing posts with label VBA. Show all posts
Showing posts with label VBA. Show all posts

Friday, May 29, 2009

Two ways of Hiding Excel Worksheet

Two ways of Hiding Worksheet –

There are two ways to hide the sheet in Excel workbook
1. Hidden –
Most of us know this way - that is by right click on the sheet tab and click Hide as shown below.


But we can unhide the hidden sheet(s) by clicking “Unhide” option, it will show the below user form there you have to select the sheets to unhide.




2. Very Hidden –
This is option is unfamiliar to most of excel users.
To accomplish this you have to do the following steps -
· First press Alt + F11 key, it will display the Visual Basic Editor
· Press Ctrl + R In the Project window double click on “Microsoft Excel Objects” and select the sheet to hide.




  • After selecting the sheet press F4 it will display the Property box
  • Change/Set the Visible property of the selected sheet to xlSheetVeryHidden.


  • To unhide the sheet set the selected sheet Visible property to xlSheetVisible.
    Note: You cannot unhide (VeryHideen) sheet in the sheet tab itself.
Hope this tips are useful.

Monday, March 30, 2009

Stop Automatic Calculation of Excel Formulas

If you want to stop automatic calculation of formulas in Excel file. You have to do the following steps to accompolish it.
In Excel 2007 –
1. Click the Excel Options shown in below screen shot.



2. Navigate to ‘Formulas’ group, change the workbook calculation to Manual and uncheck the Recalculate Workbook before saving pointed out in the below screen shot.




In Excel 2003 –
1. Go to Tools --> Options


2. Go to Calculations tab Select ‘Manual’ and Uncheck Recalulate Before Save options then click OK.

Note:
After Settings the above options in your excel file.
1.If you want to do formulas to recalculate in the workbook then press ‘F9’ key. It will recalulate the formulas in the work book.
2. If you want to do formulas to recalculate in the specific excel sheet then press ‘Shift + F9’ key. It will recalulate the formulas in the current worksheet.
Hope this post will be useful.

Wednesday, February 13, 2008

Clock in Scatter Chart










Hello Everybody,

Clock (without using Timer) created in Scatter chart (Excel Chart), yeah its true. I got inspired from the work “Fireworks in Scatter chart” done by Excel MVP “Andy Pope” (Chart Genius).

I have used the same logic to create clock in scatter chart, that I was used in “JAVA” language Clock in Java Applet”. Here I have used sine and cosine function to draw the outline for the chart, which is based on radius value in the sheet “Scatter Clock” (in the Attached file).

Please download the file “Download Scatter Chart” here.
Based on X and Y series, i have acheived the thing here.

If any queries, please free to mail me or add comment to this post.

Thanks & Regards,
Karthick

Friday, February 8, 2008

My First VBA tips

Hello VBA developer,



From now onwards, am going to post topics (tips) related to VBA (Access & Excel).

Before that, am greatfully thankful to my Boss Naresh Nichani (Access MVP) and Virtual Boss Brian Reilly(Power Point MVP), who are giving more oppotunities to learn, develope and design the stuffs in VBA (Excel and Access).



Here is my first Tip in Excel.

Custom Formats

Without using the conditional formatting, we can customize the format (Font Color), based on cell value (applicable to number)



[Red]"Export";[Blue]"Import";[Black]"Balance"



First Copy the above line (in brown color) and then right click any one of the cell in excel sheet (where do u need to format),

Select "Format Cells" --> "Number" tab --> Click "Custom" --> paste it in "Type " text box.

For Eg:

Lets assume, you assigned the above custom format in cell "A2",

Then if Cell value is + ve then Export text will be displayed
is - ve then Import text will be displayed
is 0 then Balance text will be displayed

Hope you understand that, If any queries or doubts, please let me know, by commenting this post.

Thanks & Regards,
Karthick