HELP WITH VBA CODE

roykana

Board Regular
Joined
Mar 8, 2018
Messages
120
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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

roykana

Board Regular
Joined
Mar 8, 2018
Messages
120
Office Version
  1. 2010
Platform
  1. Windows
dear all master,

please give me a solution

Thanks

roykana
 

Watch MrExcel Video

Forum statistics

Threads
1,130,119
Messages
5,640,219
Members
417,131
Latest member
Seanr19871

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
Top