Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've got the following code that records usage data for userform results.
'Mileage' is the name of the userform. I am merely copying the selection of a combobox to another workbook. I would like to do this without opening the other workbook. Thanks Sub Mileage_ReportTop5Data() Dim ClosestTo As Variant Dim ReportLoc As String ClosestTo = Mileage.ComboClosestTo.Value ReportLoc = "\\Trimain2\Public\Agent Forms\Forms\Data Sheets\Mileage Requests.xls" Application.ScreenUpdating = False Workbooks.Open FileName:=ReportLoc Sheets("Resorts Used").Range("B65536").End(xlUp).Offset(1, 0).Value = ClosestTo ActiveWorkbook.Save ActiveWorkbook.Close End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
create copy of sheet tab (excel 2007) when opening workbook | Excel Worksheet Functions | |||
Is there away to keep Excel from opening a copy of an already opened workbook and the pages not be at 100% but | New Users to Excel | |||
Copy a worksheet without 'opening' workbook | Excel Programming | |||
How to make the opening of a workbook conditional upon the opening of another workbook | Excel Programming | |||
How to make opening of workbook conditional of opening of another workbook | Excel Programming |