Solved

Excel VBA Prompt to change named range value

Posted on 2015-01-19
2
95 Views
Last Modified: 2015-01-19
Hello,

i need help with a VBA code that when my i run it, it prompts inputbox to ask me for a value and once i type value in inputbox that becomes the value for my named range "PercTT"

thanks.
0
Comment
Question by:Flora
2 Comments
 
LVL 48

Accepted Solution

by:
Rgonzo1971 earned 500 total points
Comment Utility
Hi,

pls try

Sub Macro2()
    Res = InputBox("enter the PercTT value")
    ActiveWorkbook.Names("percTT").Value = "=" & Res
End Sub

Open in new window

Regards
0
 
LVL 5

Author Closing Comment

by:Flora
Comment Utility
thanks.

worked perfectly.

my question which is somehow related to this, is pending, appreciate if you could look into this too

http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Excel/Q_28599236.html
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now