Excel_VbaTable fill if empty

joaofigu78

New Member
Joined
May 29, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi there,

i ve a table in excel and i want to fill 2 columns afters export(i ve already the right code).
i wan t fill column 4 and 5 with Text 'Sent' and now() date if null (means not sent yet)

i already filter in vba and also know that it´s colmn 26 and 27. i already search for some code that could help me get there but all i see is related to cells RC. not to a table.
ActiveSheet.ListObjects("Tbl_Consumos").Range.AutoFilter Field:=26, Criteria1:="="


Sorry for my english.
;)
Example:

#CubicagemUnidade de CubicagemSent(col 26)Date(col 27)
1​
0,792​
CD3
2​
0,792​
CD3
3​
0,792​
CD3
4​
0,792​
CD3
5​
0,792​
CD3
6​
0,792​
CD3
7​
0,792​
CD3
8​
0,792​
CD3
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,215,430
Messages
6,124,853
Members
449,194
Latest member
HellScout

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