Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro
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? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro
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 Bundychik wrote: 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? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro
Bundychik wrote:
Thanks for the tip...will try that when I get to work in the morning :) -- Message posted via http://www.officekb.com |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro
no problemo bundy
Bundychik via OfficeKB.com wrote: 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro recorded... tabs & file names changed, macro hangs | Excel Worksheet Functions | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
Need syntax for RUNning a Word macro with an argument, called from an Excel macro | Excel Programming | |||
how to count/sum by function/macro to get the number of record to do copy/paste in macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |