A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
i tried it, It doesn't overwrite, but instead of finding the next available row he finds a row much much below.. the next row is 1850 and the data was entered in row 4500.
I have tried to emulate this but for me it always selects the next row correctly (ie. after the bottom of the AutoFilter range data). I have tried the following but it always works for me.
- Selected the entire columns before applying AutoFilter.
- Selected additional rows below the data to be filtered before applying AutoFilter.
- Deleted some rows after applying AutoFilter.
I am wondering if you have blank cells in the particular column and you have data in other columns below those blank cells.
It may be possible to overcome the problem with a little more coding like the following.
- Save the filter criteria for all columns.
- Remove the filtering.
- Find the next blank cell as per your original code.
- Paste the data to the cell.
- Re-apply the filtering with the saved criteria.
However, to do the above I would need to know a little more about the filtering.
I can identify all of the filtering but dates can be a problem.
I can identify listed date filters but I cannot re-apply listed date filters. (ie. when multiple dates are selected in the filters). So if these are present then I cannot code it for you.
Single date filters are OK but I need to know what date format you use (ie. d/m/y of m/d/y)
It would help if you can upload a copy of the workbook to OneDrive and indicate where I will find the code you are using. (Tell me the Module name and line number. Position the cursor at the position of the code and the Line number of cursor position is displayed on the tool bar like "Ln 43, Col 1".
Guidelines to upload a workbook on OneDrive:
- Zip your workbooks. Do not just save to OneDrive because the workbooks open with On-Line Excel and the limited functionality with the On-Line version causes problems.
- To Zip a file: In Windows Explorer Right click on the selected file and select Send to -> Compressed (zipped) folder.)
- Do not use 3rd party compression applications because I cannot unzip them. I do not clog up my computer with 3rd party apps when there are perfectly good apps supplied with windows.
- Go to this link. https://onedrive.live.com
- Use the same login Id and Password that you use for this forum.
- Select Upload in the blue bar across the top and browse to the zipped folder to be uploaded.
- Select Open (or just double click). (Be patient and give it time to display the file after initially seeing the popup indicating it is done.)
- Right click the file on OneDrive and select Share.
- Do NOT fill in the form; Select "Get a Link" on the left side.
- Click the button "Create a Link"
- Click in the box where the link is created and it will highlight.
- Copy the link and paste into your reply on this forum.