vba - causing error in excel 2007 . how do i add work book not in compatability mode -
Reveals that the error is occurring due to the new workbook that was created in the workbook. In 2003, Excel 2003 has been in compatibility mode with compatibility mode, a range of 65536 lines, and trying to paste, there are more rows than the range I have. How do I add a workbook that is nto in compatibility mode ??
C = 1 to round (z / x + 0.5) for rows ("9:" and x) Select the .Copy Workbooks.Add Range ("A9") Select ActiveSheet.Paste 'Selection.PasteSpecial Paste:. = XlPasteAll, Operation: = xlNone, SkipBlanks _: = False, moved: = False ActiveWindow.ActivateNext Selection.Delete Rows ("1: 8") Copy the ActiveWindow.ActivatePrevious range (. "A1") ActiveSheet.Paste 'Selection Select PasteSpecial Paste :. = XlPasteAll, Operation: = xlNone, SkipBlanks _: = False, moved: = false range ("E3") = C Activeworkbook SaveAs file name: = file location 2 & amp; "\" & Amp; G & amp; "-" & amp; C _, fileformat: = xlNormal, password: = "", WriteResPassword: = "", _ ReadOnlyRecommended: = false, CreateBackup: = false ThisWorkbook.Save ActiveWindow.Close NextC
Did you try before selecting each cell before paste? (You do not need select each code before using it in VBA) - and if you just want to copy the value, you do not need to copy / paste (it is very slow (Z / x + 0.5) Workbooks.Add ActiveSheet.Range ("A9") to worksheet set ws = ActiveSheet c = 1 round. Value = ws.Rows ("dim ws as for 9:" & amp; x) .Value 'You should not have to use ActiveSheet, but I will keep it to show the difference between ws and ActiveSheet ActiveWindow.ActivateNext For 'this is dangerous because you can not really be the window that will be activated next selection. Delete 'is also dangerous, instead of using the selection, you can say which line is there? Is this macro user trigger? Line ("1: 8"). Activate the same comment as the previous category ("A1"). Paste Range ("E3"). Value = c ActiveWorkbook.SaveAs File Name: = FileLocation2 & amp; "\" & Amp; G & amp; "-" & amp; C _, fileformat: = xlNormal, password: = "", WriteResPassword: = "", _ ReadOnlyRecommended: = false, CreateBackup: = false ThisWorkbook.Save ActiveWindow.Close NextC
Comments
Post a Comment