#1   Report Post  
Posted to microsoft.public.excel.misc
TJLV
 
Posts: n/a
Default convert old macros

I have workbooks with old macros recorded using relitive references. I run
some each month and new data is apended after the old data and then sorted.
When I record in excel 2003 I do not get the choice and all copy paste or
sorts have cell addresses. Is there an easy way to convert?

Eg.
=SORT(1,"R12C67",2,"R12C71",2,"R12C68",1)
converts to
Selection.sort Key1:=Range("bo12"), Order1:=xlDescending,
Key2:=Range("bs12") , Order2:=xlDescending, Key3:=Range("bp12"),
Order3:=xlAscending, Header :=xlGuess, OrderCustom:=1, MatchCase:=False,
Orientation:=xlTopToBottom , DataOption1:=xlSortNormal,
DataOption2:=xlSortNormal, DataOption3:= xlSortNormal


And ,

=FORMULA.GOTO("R200C3")
converts to
Range("C200").Select


BUT HOW DO I CONVERT;

=SORT(1,"RC",2,"RC[1]",1)

and,

=SELECT("R[1]C[-1]:R[16]C[1]")


--
TJLV
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
CONVERT Function Disappered in Excel Gord Dibben Excel Discussion (Misc queries) 3 April 13th 05 07:59 PM
Enabling macros Peter M Excel Discussion (Misc queries) 3 February 7th 05 10:57 PM
Lotus Macros do not convert to Excel becky Excel Discussion (Misc queries) 1 February 4th 05 02:43 PM
Transferring toolbars and macros to other computers Darrell Excel Discussion (Misc queries) 1 January 19th 05 12:21 AM
Convert Numeric into Text Monty Excel Worksheet Functions 0 December 18th 04 09:25 PM


All times are GMT +1. The time now is 03:28 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"