Monday, 28 November 2016
Tuesday, 22 November 2016
Get URL of a CELL
If you want to extract URL of a Cell, you can use it thru this macro
Function GetURL(cell As range, _
Optional default_value As Variant)
'Lists the Hyperlink Address for a Given Cell
'If cell does not contain a hyperlink, return default_value
If (cell.range("A1").Hyperlinks.Count <> 1) Then
GetURL = default_value
Else
GetURL = cell.range("A1").Hyperlinks(1).Address & "#" & cell.range("A1").Hyperlinks(1).SubAddress
End If
End Function
Source: http://howtouseexcel.net/how-to-extract-a-url-from-a-hyperlink-on-excel
Wednesday, 12 October 2016
Tuesday, 4 October 2016
Get Sheet Name or File Name or File Path
If you want to get some data use the following
=CELL("filename")
Then you can use ‘find’ function to trim and get what ever informaiton you want to extract
Sunday, 25 September 2016
Saturday, 24 September 2016
Menu Bar Control
You can enable / disable items in the Menu Bar back in VBA. The following is the Control Number to enable / Disable
CommandBar Control ID
--------------------------------------------------------------------
Worksheet Menu Bar &File 30002
Worksheet Menu Bar &Edit 30003
Worksheet Menu Bar &View 30004
Worksheet Menu Bar &Insert 30005
Worksheet Menu Bar F&ormat 30006
Worksheet Menu Bar &Tools 30007
Worksheet Menu Bar &Data 30011
Worksheet Menu Bar &Window 30009
Worksheet Menu Bar &Help 30010
Chart Menu Bar &File 30002
Chart Menu Bar &Edit 30003
Chart Menu Bar &View 30004
Chart Menu Bar &Insert 30005
Chart Menu Bar F&ormat 30006
Chart Menu Bar &Tools 30007
Chart Menu Bar &Chart 30022
Chart Menu Bar &Window 30009
Chart Menu Bar &Help 30010
Friday, 16 September 2016
Find the nth Occurrence of a Character in a cell
If you want to find
A1 = This World is Very Big
To find the place of 3rd I Use the following formula : FIND("i",A1,FIND("i",A1)+3)
Here 3 represent nth occurrence
Thursday, 4 August 2016
Monday, 25 July 2016
Connect Tally from Excel
If you are trying to connect Tally from Excel and you do the following process.
First try connecting a new Query
Select Tally ODBC
If you don’t find the same then ODBC is not enabled in the Tally. Kindly enable by doing the following
1. On the Gateway of Tally, go to configuration F12
2. Select Advance configuration
3. Enable the ODBC
Sunday, 10 July 2016
Generate Random Names
Saturday, 2 July 2016
Reverse the Text in Excel
Use this code
Function Reversestr(str As String) As String
Reversestr = StrReverse(Trim(str))
End Function
Monday, 22 February 2016
Forgot Password of Tally Company
In Case if you have the tally data, but do not have the login details, you could do the following
a) Look at the name of the company
b) See the data till when the entries are there
c) Create a new company in tally with the same name
d) From the original tally data folder, copy all the files except “Company.900”
e) You will be able to now see the company.
Note: You will not be able to drill down to the transactions, however PnL and BS can be seen