Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Convert Macro .....


Hi i record this macro:

Range("B90").Select
ActiveCell.FormulaR1C1 = "=LEN(RC[-1])"
Range("B91").Select
ActiveCell.FormulaR1C1 = "=MID(R[-1]C[-1],1,RC[-1]-4)"
Range("B92").Select
ActiveCell.FormulaR1C1 = "=LEN(R[-1]C)"
Range("B93").Select
ActiveCell.FormulaR1C1 = "=MID(R[-2]C,22-8,22)"
Range("B93").Select

But i want to convert using Tags, like this
FileN = Worksheets("Datos").Range("A1").Value
Long = "=LEN(FileN)"
A = "=MID(FileN,1,Long - 4)
Long = "=LEN(A)"
FileN = "=MID (FileN,Long-8,Long)

How can i do ??

Thanks


--
rvillanueva
------------------------------------------------------------------------
rvillanueva's Profile: http://www.excelforum.com/member.php...o&userid=28814
View this thread: http://www.excelforum.com/showthread...hreadid=538149

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Convert Macro .....

FileN = Worksheets("Datos").Range("A1").Value
Long = LEN(FileN)
A = MID(FileN,1,Long - 4)
Long = LEN(A)
FileN = MID(FileN,Long-8,Long)

--
Regards,
Tom Ogilvy


"rvillanueva" wrote:


Hi i record this macro:

Range("B90").Select
ActiveCell.FormulaR1C1 = "=LEN(RC[-1])"
Range("B91").Select
ActiveCell.FormulaR1C1 = "=MID(R[-1]C[-1],1,RC[-1]-4)"
Range("B92").Select
ActiveCell.FormulaR1C1 = "=LEN(R[-1]C)"
Range("B93").Select
ActiveCell.FormulaR1C1 = "=MID(R[-2]C,22-8,22)"
Range("B93").Select

But i want to convert using Tags, like this
FileN = Worksheets("Datos").Range("A1").Value
Long = "=LEN(FileN)"
A = "=MID(FileN,1,Long - 4)
Long = "=LEN(A)"
FileN = "=MID (FileN,Long-8,Long)

How can i do ??

Thanks


--
rvillanueva
------------------------------------------------------------------------
rvillanueva's Profile: http://www.excelforum.com/member.php...o&userid=28814
View this thread: http://www.excelforum.com/showthread...hreadid=538149


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Convert Macro .....


Works fine !!!


--
rvillanueva
------------------------------------------------------------------------
rvillanueva's Profile: http://www.excelforum.com/member.php...o&userid=28814
View this thread: http://www.excelforum.com/showthread...hreadid=538149

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MACRO: Convert Row Formula to Value SteveT Excel Discussion (Misc queries) 1 August 30th 07 12:08 PM
Macro to convert Name of worksheet G Setting up and Configuration of Excel 7 November 22nd 05 09:31 PM
Convert to .PDF macro Ashish[_3_] Excel Programming 1 October 3rd 05 01:46 PM
Using Macro to convert 240 to PRN Kenneth Excel Programming 1 November 9th 03 11:43 PM
Problems with Macro to convert to CSV Jonathan[_5_] Excel Programming 4 September 20th 03 05:34 PM


All times are GMT +1. The time now is 11:03 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"