ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   VBA extraction of a part of the cells content (https://www.excelbanter.com/excel-discussion-misc-queries/262565-vba-extraction-part-cells-content.html)

Jack Sons

VBA extraction of a part of the cells content
 
Hi all (is Luke still listening?),

In Range(Cells(rijrij, kolkol), Cells(rijrij, kolkol)) I want to extract the
part after position (say) 18 and before position 29.
I forgot what VBA instruction does the trick. Please help because I can't go
on with my work.

Jack Sons
The Netherlands



Dave Peterson

VBA extraction of a part of the cells content
 
First, it looks like you can just use:

cells(rijrij, kolkol)

since the range is a single cell.

msgbox mid(cells(rijrij, kolkol).value, 19, 10)

Start with position 19 for a length of 10.





Jack Sons wrote:

Hi all (is Luke still listening?),

In Range(Cells(rijrij, kolkol), Cells(rijrij, kolkol)) I want to extract the
part after position (say) 18 and before position 29.
I forgot what VBA instruction does the trick. Please help because I can't go
on with my work.

Jack Sons
The Netherlands


--

Dave Peterson


All times are GMT +1. The time now is 06:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com