Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to copy a column and paste it special to remove formulas. The
columns position is variable. here's what i've tried so far *--remove formula for totals IF lnTotalColumn 1 loXLSheet.Columns(lnTotalColumn).Copy *!* loXLSheet.Range(Get_Col(lnTotalColumn)+ "1").PasteSpecial(xlPasteValues) *!* loXLSheet.Columns(lnTotalColumn).PasteSpecial(xlPa steValues) loXLSheet.Range(Get_Col(lnTotalColumn)+ "1").Select loXLSheet.Application.Selection.PasteSpecial(xlPas teValues) ENDIF Most threw error: OLE IDispatch exception code 0 from Microsoft Office Excel: This operation requires the merged cells to be identically sized... (1429) I'd rather not use selection. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub columntovalues()
Columns("m").Value = Columns("m").Value End Sub or Columns(activecell.column).Value = Columns(activecell.column).Value -- Don Guillett SalesAid Software "sugargenius" wrote in message oups.com... I need to copy a column and paste it special to remove formulas. The columns position is variable. here's what i've tried so far *--remove formula for totals IF lnTotalColumn 1 loXLSheet.Columns(lnTotalColumn).Copy *!* loXLSheet.Range(Get_Col(lnTotalColumn)+ "1").PasteSpecial(xlPasteValues) *!* loXLSheet.Columns(lnTotalColumn).PasteSpecial(xlPa steValues) loXLSheet.Range(Get_Col(lnTotalColumn)+ "1").Select loXLSheet.Application.Selection.PasteSpecial(xlPas teValues) ENDIF Most threw error: OLE IDispatch exception code 0 from Microsoft Office Excel: This operation requires the merged cells to be identically sized... (1429) I'd rather not use selection. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy column, paste special formulas & number formats doesn't work | Excel Discussion (Misc queries) | |||
Copy and Paste formulas | Excel Discussion (Misc queries) | |||
copy data and formulas from a column and paste into a row | Excel Worksheet Functions | |||
Find last column, move formulas over, copy/paste data | Excel Worksheet Functions | |||
Copy & Paste formulas | Excel Programming |