ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,738
- Office Version
- 2007
- Platform
- Windows
Hi,
I have a code which works well & correct,it then calls the macro below.
This should copy the data from HONDA SHEET to HONDA LIST
Select cell A4
Then return back to HONDA SHEET
Where cell A13 is then selected.
On each sheet i have a working code where once you select a cell that row will be Blue & the selected cell Green.
So in the code above i would like cell A4 slected on HONDA LIST so when i then return to it that row & cell is colored as mentioned.
With Sheets("HONDA LIST").Range("A4").Select in the code it returns a message,
Run time error 1004
Select class range of methos class failed.
So if i remove Sheets("HONDA LIST").Range("A4").Select,
I receive no errors.
The cell A4 on HONDA LIST is selected BUT the row/cell color is not updated & the next row down has the row/cell colored.
Many thanks
I have a code which works well & correct,it then calls the macro below.
Code:
Sub sheettolist()'
' sheettolist Macro
Sheets("HONDA SHEET").Range("A21:G21").Interior.ColorIndex = 6
Sheets("HONDA SHEET").Range("A21:G21").Copy
Sheets("HONDA LIST").Range("A4").Insert Shift:=xlDown
Application.CutCopyMode = False
Sheets("HONDA LIST").Range("A4").Characters(Start:=10, Length:=1).Font.ColorIndex = 3
Sheets("HONDA LIST").Range("A4").Select
ActiveWorkbook.Save
Sheets("HONDA SHEET").Range("A13").Select
End Sub
This should copy the data from HONDA SHEET to HONDA LIST
Select cell A4
Then return back to HONDA SHEET
Where cell A13 is then selected.
On each sheet i have a working code where once you select a cell that row will be Blue & the selected cell Green.
So in the code above i would like cell A4 slected on HONDA LIST so when i then return to it that row & cell is colored as mentioned.
With Sheets("HONDA LIST").Range("A4").Select in the code it returns a message,
Run time error 1004
Select class range of methos class failed.
So if i remove Sheets("HONDA LIST").Range("A4").Select,
I receive no errors.
The cell A4 on HONDA LIST is selected BUT the row/cell color is not updated & the next row down has the row/cell colored.
Many thanks