Results 1 to 2 of 2

Best way to collect forecast data from countries ?

Threaded View

noze2000 Best way to collect forecast... 11-03-2018, 03:39 AM
AliGW Re: Best way to collect... 11-03-2018, 03:57 AM
  1. #1
    Registered User
    Join Date
    10-29-2014
    Location
    Copenhagen
    MS-Off Ver
    2013
    Posts
    1

    Best way to collect forecast data from countries ?

    [Edited re comment below - thanks!]

    So I have a forecast in excel for a number of countries.
    I would like to create a spreadsheet that allows other people update the forecast without managing the cells directly.

    i.e. see the forecast, enter correction in adjacent cells- and click "accept" to have VBA implement that new forecast as the current.

    Help?

    
    Sub Accept_new_forecast()
    '
    ' Macro4 Macro
    Dim new_forecast As Range
    Dim current_forecast As Range
    Dim cntr As Range
    
    ' what country is the new forecast in?
    
    cntr = Sheets("Input").Range("A21") ' why does this give an error?
    
    ' Set the full forecast (all countries)
    full_forecast = Sheets("Forecast").Range("t_forecast")
    
    ' set the range with the new forecast
    
    Set new_forecast = Sheets("Input").Range("B24:BC24")
        
     ' [find the row in full_forecast  to replace using the country in cntr]
     ' [replace the data cells in that row for each month with the new numbers in new_forecast range - but only for cells in new_forecast that are not empty - leave the rest as is]
     
     Sheets("input").new_forecast = "" ' clear the new_forecast cells after they have been accepted to current_forecast
     
       
    End Sub
    
    Sub clear_new_forecast()
    Set new_forecast = Sheets("Input").Range("B24:BC24")
    new_forecast.Value = ""
    End Sub
    Any help is appreciated
    Thanks
    /N
    Attached Files Attached Files
    Last edited by noze2000; 11-04-2018 at 04:49 AM. Reason: Comment below - thanks!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 05-17-2015, 08:59 AM
  2. Convert 52 Week Rolling Forecast to Monthly Forecast
    By rainintl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-04-2014, 07:24 PM
  3. Challenging Forecast Wape - Rolling 12 Month Sum Of Orders And Forecast
    By nguyeda in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-17-2013, 06:20 PM
  4. [SOLVED] export data to compare with some countries information
    By damianozornetta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-15-2013, 03:06 AM
  5. Replies: 2
    Last Post: 09-09-2011, 07:13 AM
  6. separate data of differents countries in others sheets
    By silviario in forum Excel General
    Replies: 6
    Last Post: 04-27-2011, 03:14 PM
  7. How can I match data about countries drawn from two database queries?
    By tettrick in forum Excel Formulas & Functions
    Replies: 45
    Last Post: 09-06-2005, 09:05 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