Hi,
I hope you can help me, apologies if the post is not clear I am relatively new to VBA and to the forum.
I am struggling with a userform and workbook I am setting up for employee leave organisation. I am trying to create a method for a user to select a leave request from a listbox (linked to worksheet) and cancel it. I would like for the to be able to cancel / remove a record without leaving gaps in either the listbox or the worksheet.
I have tried a number of methods none of which are helping. when I tried to delete row and shift up it has the desired affect in deleting the row however returns #ref in cells on the worksheet that I don't intend on adjusting as they contain formula, as well as removing the bottom row.
I then have tried the following to see if I could select a range based on the listbox selection ( the range below the selection up to lastrow) then copy paste values to the same listindex row.
The range will actually be for more than just the one column ultimately ( I am taking the column approach so as to avoid the columns containing formula - I appreciate there is likely a simpler way of going about this however).![]()
Please Login or Register to view this content.
I suspect that the area where I am having the problem is this :
if you are able to point me in the right direction either through correcting this or a more straight forwards method it would be hugely appreciated.![]()
Please Login or Register to view this content.
Many Thanks in advance.
Owen
Bookmarks