Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello
Realtive newbie here! I am looking for a macro that will move worksheets to a master workbook. I have an order form with macros that save a file as a certain name and forward it via email that works fine. I want to have a macro the inserts the order worksheet into another workbook so copies are kept in one master file. Another option is a macro to post values to another workbook posted on a network drive, where they can be totaled, i.e. order one becomes line one in another workbook Any suggestions? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
With Workbooks("Master.xls")
Workbooks("Newbook.xls").Worksheets("Sheet1").Move _ befo=.Worksheets(.Worksheets.Count) End With -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Rambler" wrote in message ups.com... Hello Realtive newbie here! I am looking for a macro that will move worksheets to a master workbook. I have an order form with macros that save a file as a certain name and forward it via email that works fine. I want to have a macro the inserts the order worksheet into another workbook so copies are kept in one master file. Another option is a macro to post values to another workbook posted on a network drive, where they can be totaled, i.e. order one becomes line one in another workbook Any suggestions? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would use something like the following:
Dim wbk1, wbk2 As Workbook Dim x wbk1 = "Orders.xls" wbk2 = "Master.xls" x = ActiveSheet.Name Cells.Select Selection.Copy wbk2.Activate Sheets.Add ActiveSheet.Name = x ActiveSheet.Range("A1").Activate Selection.PasteSpecial Paste:=xlValues Best wishes, Jim "Bob Phillips" wrote: With Workbooks("Master.xls") Workbooks("Newbook.xls").Worksheets("Sheet1").Move _ befo=.Worksheets(.Worksheets.Count) End With -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Rambler" wrote in message ups.com... Hello Realtive newbie here! I am looking for a macro that will move worksheets to a master workbook. I have an order form with macros that save a file as a certain name and forward it via email that works fine. I want to have a macro the inserts the order worksheet into another workbook so copies are kept in one master file. Another option is a macro to post values to another workbook posted on a network drive, where they can be totaled, i.e. order one becomes line one in another workbook Any suggestions? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I get post-hoc results after running an ANOVA in Excel? | Excel Discussion (Misc queries) | |||
Should I generally request "post a poll" when I post a new thread? | Excel Discussion (Misc queries) | |||
Post data to a web page and get results | Excel Discussion (Misc queries) | |||
How do I post values from source workbook to destination workbook | Excel Programming | |||
Variable results to new workbook | Excel Programming |