Thread: Macro
View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Bundychik via OfficeKB.com Bundychik via OfficeKB.com is offline
external usenet poster
 
Posts: 3
Default Macro

Hey bony_tony

Excellent tip...worked a treat and I got my macro finished before I started
holidays! Thanks for the help!
Cheers
Bundychik



bony_tony wrote:
This macro will take to the next workbook;

Sub Switch_workbooks()
'
' Switch_workbooks Macro
' Macro recorded 13/12/2006 by Tony Gardner
'
ActiveWindow.ActivateNext
End Sub

If you press Ctrl-Tab whilst recording a macro, it will write this
exact code for you

Tony

I am a beginner to visual basic and need to write a macro to swap between two
workbooks without mentioning any filenames. Can anyone help?


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200612/1