Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Any one know what this could mean?
here is the code the produces it: Sub o_three_panel_tot() Application.ScreenUpdating = False Sheets("o-bid").Select Range("o_oak_slab_tot").Select ActiveCell.FormulaR1C1 = "=SUM(o_threep_oak_slab)" Range("o_raw_slab_tot").Select ActiveCell.FormulaR1C1 = "=sum(o_threep_raw_slab)" Range("o_maple_slab_tot").Select ActiveCell.FormulaR1C1 = "=sum(o_threep_maple_slab)" Range("o_pine_slab_tot").Select ActiveCell.FormulaR1C1 = "=sum(o_threep_pine_slab)" Range("o_alder_slab_tot").Select ActiveCell.FormulaR1C1 = "=sum(o_threep_alder_slab)" Range("o_cherry_slab_tot").Select ActiveCell.FormulaR1C1 = "=sum(o_threep_cherry_slab)" Sheets("o-builder").Select End Sub -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...excel/200702/1 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
the named ranges refer to a merged cell...i tried both things below and got
the same error. i first thought typo too, but cant seem to locate a typo. I'll keep checking though. Well i tried moving the code to a different mod and it works from there. i dont understand, but it works, so i'll leave it. thanks, Don Guillett wrote: TYPO? What do your named ranges refer to? Individual cells or ranges? Also you do NOT need or want selections. with sheets("o-bid") .Range("o_oak_slab_tot").Formula= "=SUM(o_threep_oak_slab)" .Range("o_raw_slab_tot").Formula= "=sum(o_threep_raw_slab)" 'etc notice the . before range end with or, since they are named ranges, you may be able to just use this without the With and no dots sub doit() Range("o_oak_slab_tot").Formula= "=SUM(o_threep_oak_slab)" Range("o_raw_slab_tot").Formula= "=sum(o_threep_raw_slab)" 'etc end sub Any one know what this could mean? here is the code the produces it: [quoted text clipped - 15 lines] Sheets("o-builder").Select End Sub -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...excel/200702/1 |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You should still learn how to clean it up
-- Don Guillett SalesAid Software "brownti via OfficeKB.com" <u31540@uwe wrote in message news:6dcc894c876fc@uwe... the named ranges refer to a merged cell...i tried both things below and got the same error. i first thought typo too, but cant seem to locate a typo. I'll keep checking though. Well i tried moving the code to a different mod and it works from there. i dont understand, but it works, so i'll leave it. thanks, Don Guillett wrote: TYPO? What do your named ranges refer to? Individual cells or ranges? Also you do NOT need or want selections. with sheets("o-bid") .Range("o_oak_slab_tot").Formula= "=SUM(o_threep_oak_slab)" .Range("o_raw_slab_tot").Formula= "=sum(o_threep_raw_slab)" 'etc notice the . before range end with or, since they are named ranges, you may be able to just use this without the With and no dots sub doit() Range("o_oak_slab_tot").Formula= "=SUM(o_threep_oak_slab)" Range("o_raw_slab_tot").Formula= "=sum(o_threep_raw_slab)" 'etc end sub Any one know what this could mean? here is the code the produces it: [quoted text clipped - 15 lines] Sheets("o-builder").Select End Sub -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...excel/200702/1 |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
i know i should... :-/ I dont know where to begin to clean it up, and since
its working, I'm happy for the time being. Don Guillett wrote: You should still learn how to clean it up the named ranges refer to a merged cell...i tried both things below and got [quoted text clipped - 29 lines] Sheets("o-builder").Select End Sub -- Message posted via http://www.officekb.com |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Look at my first post which gets rid of the selections.
-- Don Guillett SalesAid Software "brownti via OfficeKB.com" <u31540@uwe wrote in message news:6dccb8c9de442@uwe... i know i should... :-/ I dont know where to begin to clean it up, and since its working, I'm happy for the time being. Don Guillett wrote: You should still learn how to clean it up the named ranges refer to a merged cell...i tried both things below and got [quoted text clipped - 29 lines] Sheets("o-builder").Select End Sub -- Message posted via http://www.officekb.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Run Time Error '1004' | Excel Discussion (Misc queries) | |||
Run time error 1004! | Excel Discussion (Misc queries) | |||
run time error 1004 | Excel Discussion (Misc queries) | |||
Run-time error '1004 | Excel Discussion (Misc queries) | |||
Run time error 1004, General ODBC error | New Users to Excel |