Copy Data by month to table using Inputbox with Add or Delete Row
Hello,
Please help me to copy data from my Sheet (Sheet Name: WrkingSheet) and Paste to TablebyMonth in another sheet (Sheet Name: Diff) (Book12.zip attached here). Month name will provide in Inputbox, and acording to month provided, data of that particular month will go in the Table of that Month.
I have added the code in workbook but this is pasting data in month name sheet.
I have tried code but it is paste data into sheet with month name. (copy data using inputbox based on month) I want to paste data in same sheet but different tables. And require to overwrite data if any old/other data present in that cell with add or delete row as per entries.
Please check.
Thank You.
This question also posted here:
mrexcel.com/board/threads/copy-data-by-month-to-table-using-inputbox-with-add-or-delete-row.1221874/
forum.ozgrid.com/forum/index.php?thread/1232681-copy-data-by-month-to-table-using-inputbox-with-add-or-delete-row/&postID=1258386#post1258386
msofficeforums.com/171677-post1.html
chandoo.org/forum/threads/copy-data-by-month-to-table-using-inputbox-with-add-or-delete-row.49812/
f = mMin Do key = Format(f, "mm_yyyy") If D.Exists(key) Then Set mCell = .Cells(Rows.Count, "f").End(xlUp).Offset(2, -1) Range("Diff_Model").Copy mCell mCell.Offset(2).Range("a1:g" & D(key)(0) - 1).Insert xlShiftDown mCell = f mCell(2).Resize(D(key)(0), 3) = D(key)(1) End If f = DateAdd("m", 1, f) Loop While f <= mMax .Activate End With End Sub
Re: Copy Data by month to table using Inputbox with Add or Delete Row
Hi Beyond Excel,
Thank you for your efforts and Sorry for the late reply.
Code Working as require, but the thing is, It is creating Tables in new sheet. But I have already created Blanks Table in Sheet2 (Diff Sheet). So If there is no data in any month then it will keep it blank (it is ok if It'll create Table in Sheet2, but need to also create blank if no any data in particular month). So if possible that way? And also month will start from April ('cause we are counting year from April to March).
Re: Copy Data by month to table using Inputbox with Add or Delete Row
In this Forum it is customary to thank the help received by adding reputation (click on *) at the bottom right of the messages that have helped you solve your problem.
Bookmarks