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

thanks to all for yout tips...

...but i've found on my own the solution i was lookin for.

just 3 lines of code and a magical word: "Workbooks"

this is the macro i wanted to implement

Sub copiaform_da_MytyM2_a_MytyM()
'
' copiaform_da_MytyM2_a_MytyM Macro
' Macro registrata il 19/10/2005 da fulvio
Dim i As Integer

For i = 15 To 123 Step 12

Workbooks("My.T.y.M.xls").Worksheets("saved line-ups").Range("B" &
i).Value = Workbooks("My.T.y.M2.xls").Worksheets_("saved
line-ups").Range("B" & i).Value

Workbooks("My.T.y.M.xls").Worksheets("saved line-ups").Range("C" & i +
1 & ":C" & i + 11).Value =
Workbooks_("My.T.y.M2.xls").Worksheets("saved line-ups").Range("C" & i
+ 1 & ":C" & i + 11).Value

Workbooks("My.T.y.M.xls").Worksheets("saved line-ups").Range("E" & i +
1 & ":E" & i + 11).Value =
Workbooks_("My.T.y.M2.xls").Worksheets("saved line-ups").Range("E" & i
+ 1 & ":E" & i + 11).Value

Next i

End Sub

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 Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 3 February 5th 07 08:22 PM
translate lotus 1-2-3 macro into excel macro using excel 2000 krutledge0209 Excel Programming 1 November 2nd 04 05:50 PM
Excel Macro Issue Trying to autorun Macro Upon Opening Worksheet wyndman Excel Programming 2 May 25th 04 06:59 PM


All times are GMT +1. The time now is 12:42 PM.

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

About Us

"It's about Microsoft Excel"