msg box to fill a cell in column when another column in the same row is filled

Gtasios4

Board Regular
Joined
Apr 21, 2022
Messages
80
Office Version
  1. 2021
Platform
  1. Windows
Hi All,

I need a vba code to pop up a msg box to the user to fill the quantity (Col. M4 , M5 & added rows above the "Total" bar) when B4, B5 and inserted rows are filled in the below tool, therefore make it somehow mandatory cells.

1652106892416.png


Thanks in advance
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Being Newbee is not an issue. I was a newbee once ;)

I recommend giving it a try and if you are stuck then post the code and I will definitely help you fix it. (It's a promise). However, I need you to show some efforts first.
 
Upvote 0
Being Newbee is not an issue. I was a newbee once ;)

I recommend giving it a try and if you are stuck then post the code and I will definitely help you fix it. (It's a promise). However, I need you to show some efforts first.
Dear Siddharth,

Something like?

Dim lastrow As Long
lastrow = Range("B" & rows.Count).End(xlUp).Row
Range("B4:M4").AutoFill Destination:=Range("B4:M4", Range("B4:M4").End(xlDown)), Type:=xlFillDefault

But if i want that code to run in the rows above the "Total bar" as well as the insterted rows above the total bar, how can I do that?
 
Upvote 0
Being Newbee is not an issue. I was a newbee once ;)

I recommend giving it a try and if you are stuck then post the code and I will definitely help you fix it. (It's a promise). However, I need you to show some efforts first.
Hi Siddharth,

I've trying to find someway.. but nothing yet.. any hint on that would be much appreciated. Just to clarify what I want to do, the users that are using the below quotation tool sometimes forget to type a quantity (column M), therefore a message box would solve that..In the instert row command button the user also inserts rows above the total bar, thus the message box for filling out qty should pop-up also when someone inserts rows..

1653037072749.png
 
Upvote 0

Forum statistics

Threads
1,213,489
Messages
6,113,947
Members
448,534
Latest member
benefuexx

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