HELP WITH VBA CODE

roykana

Active Member
Joined
Mar 8, 2018
Messages
311
Office Version
  1. 2010
Platform
  1. Windows
Dear All Master,


Please help me with the vba code. What I want in the data sheet to be like in the result sheet, namely in columns A & B. What I want is as follows:
1. I want to pop up a textbox to type the year because in the original data sheet there is no year, so with the pop up textbox I can type the year I want so that the data in column A in the result sheet matches the date format.
2. I want the result in column B in the result sheet like that.
3. I want to ask in the vba code below why can't I delete a row based on criteria like this "No. Account."
and also for blank row can use the code below.
link :HELP WITH VBA CODE.xlsx
https://drive.google.com/file/d/1HOOcC6tW76RcOFWzPqBDTuD5hZG1ZL2O/view?usp=sharing

Thanks
roykana
VBA Code:
.AutoFilterMode = False
        With Range("A1", Range("A" & Rows.Count).End(xlUp))
        .AutoFilter 1, Criteria1:=Array("No. Account", "Name", "Currency", "cash", "credit"), Operator:=xlFilterValues
        On Error Resume Next
        .Offset(1).SpecialCells(12).EntireRow.Delete
        End With
        .AutoFilterMode = False
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
dear all master,

please give me a solution

Thanks

roykana
 
Upvote 0

Forum statistics

Threads
1,224,836
Messages
6,181,250
Members
453,026
Latest member
cknader

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top