Macro to move cells from one column to another column based on value from cell (Calendar)

HelloWorld123

New Member
Joined
Oct 1, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi, I have just got a hang of macro but need some help with coding in VBA!
I have a calendar with a lot of different activities placed in different cells. Let's pretend that my activities are A,B,C. The cells in the calendar (workbook A) will be externally referenced with data (dates) from workbook B. Once I update the data in workbook B I want my cells to, with a macro, move from one column to another (still be placed in the same row) depending on the column's value in workbook A and cells value in workbook B.

Workbook A (Calendar)
1633091192176.png
Workbook B
1633091267234.png


So if i change the date in workbook B (Cell L1) from 2021-05-09 to 2021-05-10, then I want that the cell in workbook to move automatic to that specific date, like this:
Before:
1633091385919.png
---> After:
1633091437046.png


How do I create a macro that can achive that? (I'm not experienced with coding)
Is it possible to create a macro that makes all the activities to do the same, so I don't have to make a macro for each cell?

Thank you!! :)
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,223,706
Messages
6,173,998
Members
452,542
Latest member
Bricklin

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