calculation by vba

agog12

Board Regular
Joined
Jan 23, 2018
Messages
104
vba is placed in a seperate file c.xlsm
both files are located in a same place
there is a file name sample1.xlsx
open sample1.xlsx
in column N we have to use the formula =H2/M2 and paste the result in values in column N of sample1.xlsx
and in coulmn Q we have to use the formula =N2*P2 and paste the result in values in column Q of sample1.xlsx
and save and close the sample1.xlsx


note we have to use the formula till the end of the data (till the column H has data )
example if column H has data till H17 then we have to use the formula till
N17 & Q17

so plz have a look sir and help me in solving this problem by vba macro sir
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
It is not the macro causing the issue, it is what you have in the CSV, in the other post you need to explain what is in those cells.

If it is not a formula then use the =CODE(65539) formula in the CSV and tell the people reading it what it returns or if it is text #N/A then you need to tell the readers that.

As you are not willing/able to provide a link to the workbook/CSV then it is up to you to explain what is in those cells as the readers can't do that for you.

I am not replying anymore to this thread. Any info you need to give needs to be put in the other thread.
 
Last edited:
Upvote 0
bro give me some time i will let u know all details about where the mistake occurred everything just give some time bro
 
Upvote 0
If you know what the issue is then you need to update the other thread.
 
Upvote 0
You need to put a comment there that you have it resolved so that people don't waste any time on it.
 
Upvote 0

Forum statistics

Threads
1,216,371
Messages
6,130,217
Members
449,567
Latest member
ashsweety

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