miscellaneous

Javascript Get the Current Path without %20 and / backslash

To get the current path using javascript without the %20 and / (backslash), use the following code: var path = document.location.pathname; alert (path); However using the javascript path variable in this manner gives something like this: So now we use the string replace function in Javascript to rectify this: var path = document.location.pathname; path = path.replace(/\//gi, ""); path = path.replace(/%20/gi, " "); path = path.replace(/\\/gi, "\/"); alert (path); This javascript code ...

Continue Reading

Javascript Get the Current Path without %20 and / backslash

charts

How to Choose a Chart

Posted on 03 July 2009

How to Choose a Chart
How to choose a chart? Which chart would best fit the data set that I have? How do I choose the better chart type from Excel? Finding the right type of chart for the data set that you have can be a bit of a challenge. Given a set of seemingly equivalent alternatives, picking one chart over the other can turn out to be quite an interesting exercise. The chart chooser diagram can help you make a choice in situations ...
Continue Reading

Comments (1)

vba

VBA For Loop - For Next and For Each In Next

Posted on 01 July 2009

VBA For Loop - For Next and For Each In Next
The For Loop is one of the most frequently used loops in VBA. The For loop has two forms in VBA - For Next and For Each In Next. The For loop is typically used to move sequentially through a list of items or numbers. To end the for loop at any given point we can use the exit for statement. Let's take a closer look at each of these ...
Continue Reading

Comments (0)

charts, data visualization

Chartjunk

Posted on 29 June 2009

Chartjunk
Chartjunk, a term first coined by Edward Tufte, refers to all those elements in a chart that add no further value. Chartjunk comes in many shapes and size - redundant labels, unnecessary gridlines, over-the-top use of colors and everything that a 'creative' mind can think of. However what should be kept in mind is that this term also has a strong contextual meaning. An element that may appear as chartjunk in one graph may serve a useful function in another ...
Continue Reading

Comments (2)

excel demo, vba

How To Create Pivot Table Using VBA

Posted on 28 June 2009

How To Create Pivot Table Using VBA
How to create a pivot table using VBA? Assuming that the data for the pivot table is laid out like this, then all you need to create a pivot using vba are there four lines of code: ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatabase, SourceData:= ActiveSheet.UsedRange).CreatePivotTable TableDestination:="", TableName:= "PivotTable1", DefaultVersion:=xlPivotTableVersion10 ActiveSheet.PivotTableWizard TableDestination:=ActiveSheet.Cells(1, 1) ActiveSheet.PivotTables("PivotTable1").AddFields RowFields:="Name" ActiveSheet.PivotTables("PivotTable1").PivotFields("Name").Orientation = xlDataField The pivot table so created using the VBA code above can be ...
Continue Reading

Comments (0)

fun

Funny Side Up - I

Posted on 28 June 2009

Funny Side Up - I
What was meant to be a leisurely stroll with my more-expensive half along the beachfront yesterday, turned into half an hour of soaking in the rain followed by about 2 hours of journey back home. While on the way back, I saw a man helping a blind old woman onto the train carriage. A few minutes into the journey, as the station approached, she began walking towards the exit door. Fearing that she could miss her step and hurt herself, I ...
Continue Reading

Comments (0)

excel tips

Hide Error Value and Error Indicators in Excel

Posted on 26 June 2009

Hide Error Value and Error Indicators in Excel
To hide error value and error indicators in Excel you can use any of the following means: Hide error values using conditional formatting Hide errors indicators by turning off background error Hide error values by using IF(ISERROR()) function Hide error using a custom VBA function Let's take a closer look at each type of error handling method. Hide error values using conditional formatting Click on the cell that contains an error value. From the menu, select 'Format' -> 'Conditional Formatting'. ...
Continue Reading

Comments (0)




Subscribe

Keep up with the latest stories delivered right in your inbox
feedburner

Translate

Translate in EnglishTranslate in Chinese (Simplified)Translate in PortugueseTranslate in GermanTranslate in FrenchTranslate in SpanishTranslate in JapaneseTranslate in ArabicTranslate in DutchTranslate in HindiTranslate in PolishTranslate in SwedishTranslate in FilipinoTranslate in HebrewTranslate in IndonesianTranslate in UkrainianTranslate in Thai