Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi all Gurus, below is the code to export a worksheet to another excel
workbook when a button is pressed. This works perfect, however ideally i want it to paste in the values and not the formatting and/or formulas etc (just the figures) Please Help. Neil. Sub Button2_Click() Dim wb1 As Workbook, wb2 As Workbook Dim ws As Worksheet, lngRow As Long Application.DisplayAlerts = False Application.ScreenUpdating = False Set wb1 = ActiveWorkbook Set wb2 = Workbooks.Open("\\sguk-app1\Business Objects\CHR\Export of SGUK.xls") Set ws = wb2.Sheets("Sheet1") lngRow = ws.Cells(Rows.Count, "A").End(xlUp).Row wb1.Sheets("EAM405").Range("A8:T27").Copy ws.Range("A" & lngRow) wb2.Close True Application.DisplayAlerts = True Application.ScreenUpdating = True |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can I use & export data & sheets between Excel 2003 & 2007 | Excel Discussion (Misc queries) | |||
SAP export to Excel 2003 | Excel Discussion (Misc queries) | |||
EXCEL 2003 Export Issue | Excel Worksheet Functions | |||
Export to Excel 2003 from Oracle Discoverer 9i | Excel Discussion (Misc queries) | |||
How can I export an excel 2003 chart to a .jpg? | Charts and Charting in Excel |