+ Reply to Thread
Results 1 to 5 of 5

Multipy by vba

  1. #1
    Forum Contributor
    Join Date
    05-10-2020
    Location
    india
    MS-Off Ver
    2013
    Posts
    221

    Multipy by vba

    Hi,

    Macro will be placed in macro.xlsm & sample1.xlsx & sample2.xlsx , all three files are located at different place so the path should be hardcoded in the macro for both the files so that i can change it as per my needs

    Column K of sample1.xlsx should be hardcoded in the macro so that i can change it as per my needs
    Column E should be hardcoded in the maro so that i can change it as per my needs


    Multiply all the data in column K of sample1.xlsx with sample2.xlsx E2 cells by vba

    Thnx Alot
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Multipy by vba

    Of all the threads you have started and received replies, you must have learned something that would help you to figure this out.

    Show the code you have come up with and explain how it is not working.

    Your previous thread I replied to, would have given you an idea on how to do this.
    It showed how to loop through a range and add to a value.
    Now you need to loop through a range and multiply by another cells value.

    Come up with a code yourself. Then ask for help with that code.

  3. #3
    Forum Contributor
    Join Date
    05-10-2020
    Location
    india
    MS-Off Ver
    2013
    Posts
    221

    Re: Multipy by vba

    I am confused with the loops bcoz we have to loop into both the files

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Multipy by vba

    You are only looping in one workbook, multiplying a value from a different workbook.

  5. #5
    Forum Contributor
    Join Date
    05-10-2020
    Location
    india
    MS-Off Ver
    2013
    Posts
    221

    Re: Multipy by vba

    Sir i dont have that much knowledge about vba macro

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] If a cell contains certain text then multipy two other cells
    By KB2015 in forum Excel General
    Replies: 5
    Last Post: 03-04-2015, 03:14 PM
  2. [SOLVED] multipy minutes by hours
    By m_789 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2013, 10:43 AM
  3. Multipy and Sum 2 Columns
    By nguyeda in forum Excel General
    Replies: 2
    Last Post: 03-29-2009, 06:51 PM
  4. String to value then multipy
    By stevekirk in forum Excel General
    Replies: 6
    Last Post: 09-27-2006, 10:46 AM
  5. multipy group of numbers
    By Mary in forum Excel General
    Replies: 2
    Last Post: 05-04-2005, 12:06 AM
  6. Multipy column A by .0025 and place in B
    By scrylry in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-30-2005, 05:18 PM
  7. How do I multipy a range of cells by a common number?
    By Art in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-10-2005, 06:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1