Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am trying to make a 2 sheet workbook which has the input details in Sheet1
A1 and this is changed weekly but the info in this cell should then be inserted into the first blank cell in Column A in Sheet 2. I have tried this code (below) but it doesn't seem to work and maybe I am doing something wrong. Could someone let me know if this code should work for this purpose or is there another code I could try? Code used at present: Sub copytonextsheet() With Sheets("Sheet2") n = .Cells(Rows.Count, "A").End(xlUp).Row + 1 ..Cells(n, "A").Resize(, 4).Value = _ Cells(1, "A").Resize(, 4).Value End With End Sub Thanks Nick |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Delete a dot at the beginning of this line:
...Cells(n, "A").Resize(, 4).Value -- Wigi http://www.wimgielis.be = Excel/VBA, soccer and music "Nick Wakeham" wrote: I am trying to make a 2 sheet workbook which has the input details in Sheet1 A1 and this is changed weekly but the info in this cell should then be inserted into the first blank cell in Column A in Sheet 2. I have tried this code (below) but it doesn't seem to work and maybe I am doing something wrong. Could someone let me know if this code should work for this purpose or is there another code I could try? Code used at present: Sub copytonextsheet() With Sheets("Sheet2") n = .Cells(Rows.Count, "A").End(xlUp).Row + 1 ..Cells(n, "A").Resize(, 4).Value = _ Cells(1, "A").Resize(, 4).Value End With End Sub Thanks Nick |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Sorry, that was my fault - there is only one dot there - I must have typed
another in. But that code doesn't work Nick "Wigi" wrote in message ... Delete a dot at the beginning of this line: ..Cells(n, "A").Resize(, 4).Value -- Wigi http://www.wimgielis.be = Excel/VBA, soccer and music "Nick Wakeham" wrote: I am trying to make a 2 sheet workbook which has the input details in Sheet1 A1 and this is changed weekly but the info in this cell should then be inserted into the first blank cell in Column A in Sheet 2. I have tried this code (below) but it doesn't seem to work and maybe I am doing something wrong. Could someone let me know if this code should work for this purpose or is there another code I could try? Code used at present: Sub copytonextsheet() With Sheets("Sheet2") n = .Cells(Rows.Count, "A").End(xlUp).Row + 1 ..Cells(n, "A").Resize(, 4).Value = _ Cells(1, "A").Resize(, 4).Value End With End Sub Thanks Nick |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Inserting blank rows for missing data in order to transpose | Excel Worksheet Functions | |||
need help please inserting multiple rows based on cell value then copying to data sheet | Excel Worksheet Functions | |||
Split a Blank Cell into Two (Without Inserting Cell) | Excel Discussion (Misc queries) | |||
Split a Blank Cell into Two (Without Inserting Cell) | Excel Discussion (Misc queries) | |||
Inserting the date that an excel sheet is saved into a cell | Excel Discussion (Misc queries) |