To return the column number of a string
Hello All,
I am pretty new to Excel Macros. I was writing a code and stuck up with this problem. I want to write the code to return the column number of a particular string. Like, I have "VET" string in one of the cells, A20 My code has to return to the column number 1 for the string "VET" Please help, Thanks, Prasanna. |
To return the column number of a string
Once you have established your string is in A20 then you return the column
number of the cell:- x = Range("A20").Column Mike " wrote: Hello All, I am pretty new to Excel Macros. I was writing a code and stuck up with this problem. I want to write the code to return the column number of a particular string. Like, I have "VET" string in one of the cells, A20 My code has to return to the column number 1 for the string "VET" Please help, Thanks, Prasanna. |
All times are GMT +1. The time now is 10:50 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com