+ Reply to Thread
Results 1 to 7 of 7

Change value for multiply from input in sheet

Hybrid View

  1. #1
    Registered User
    Join Date
    03-06-2012
    Location
    west coast Norway
    MS-Off Ver
    Office 365
    Posts
    55

    Change value for multiply from input in sheet

    Hello all,

    I have a sheet were up until now I have used a formula with a fixed value. However, we now see in some instances this needs to be tweaked and it is a lot of work when not using this converter sheet we have. So basically, we have defined our "Newsubarea = (stabarea - subarea) * 0.4"

    So the question:
    This 0.4 value we would like to choose manually in a cell, say for example shee1 and cell L34.

    How can I write this in VBA? I've done my best but no luck. Google search doesn't give answers related to my question.
    Screenshot 2021-01-11 124841.png

    Thanks in advance!
    Attached Files Attached Files
    Last edited by tigergutt; 01-11-2021 at 10:07 AM.
    kind regards
    tigergutt

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Change value for multiply from input in sheet

    Newsubarea = (stabarea - subarea) * Sheets("Sheet1").Cells(34, "L").value
    多么想要告诉你 我好喜欢你

  3. #3
    Registered User
    Join Date
    03-06-2012
    Location
    west coast Norway
    MS-Off Ver
    Office 365
    Posts
    55

    Re: Change value for multiply from input in sheet

    Thanks millz, but for some reason this did not work. Seems like the whole calculation process stopped in the sheet completely. I don't get any errors, but there are no calculations done.

    I will try and attach the sheet and see if that can help.

  4. #4
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Change value for multiply from input in sheet

    You need to ensure there's some values in L34 before running the macro.

  5. #5
    Registered User
    Join Date
    03-06-2012
    Location
    west coast Norway
    MS-Off Ver
    Office 365
    Posts
    55

    Re: Change value for multiply from input in sheet

    Yupp, value is there, but nothing...

  6. #6
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Change value for multiply from input in sheet

    It will refer to the sheet named Sheet1, if your sheet is named otherwise then it won't work.

  7. #7
    Registered User
    Join Date
    03-06-2012
    Location
    west coast Norway
    MS-Off Ver
    Office 365
    Posts
    55

    Cool Re: Change value for multiply from input in sheet

    Doh... Yes off course I assumed we could just use "Sheet1", and not the edited tab name, but once I used that it worked.

    Sorry for being so slow, and many thanks for you help and patience Much appreciated!

+ 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. How to input a 1 or 2 or 3 into a cell and have it multiply by a set number
    By MajorFear in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-04-2015, 01:39 AM
  2. Input Box to change Sheet Names used in VBA Code
    By surePac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2014, 10:32 AM
  3. Replies: 3
    Last Post: 08-23-2013, 04:55 PM
  4. Triggering value change in vba output on sheet two when input comes from sheet one
    By heidenman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-31-2009, 02:03 PM
  5. User Input to Multiply
    By hutch@edge.net in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2009, 04:46 PM
  6. How do I change . to : when input in a time sheet by error
    By geordie in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-10-2005, 04:30 PM
  7. Change the input in a sheet by OptBox
    By Michael in forum Excel General
    Replies: 0
    Last Post: 06-28-2005, 08:05 AM

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