Insert blank column after finding cell value

B-radK

Board Regular
Joined
Apr 1, 2010
Messages
96
Office Version
  1. 365
Platform
  1. Windows
Hello team,

I would like to know a vba code to find cell values, then insert a blank columns immediately after those cells.

For example, find a cell called "Bank" then insert a blank column afterwards. At the same time, find cells with "Transaction" and "Account" and insert blank columns after those too.

Any help would be greatly appreciated.

Thanks,
Brad.
 
G'day Peter,

I was playing around with the date format. If I select the following date format, it does not work:

1586373936470.png


If I select the following date format, it does work:

1586374000598.png


Thanks again for your help.

It is very much appreciated.

Thanks,
Brad.

(y)
 
Upvote 0

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
If I select the following date format, it does not work:
Try this instead
Rich (BB code):
Set rFound = Rows(4).Find(What:=DateValue(Hdr), LookIn:=xlFormulas, LookAt:=xlWhole)
 
Upvote 0
Hello Peter,

Yes, that worked.

Problem solved. We can wrap that one up!

Thanks,
Brad.
 
Upvote 0

Forum statistics

Threads
1,215,819
Messages
6,127,045
Members
449,356
Latest member
tstapleton67

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