Results 1 to 4 of 4

How to add range in a Formula through VBA

Threaded View

  1. #1
    Registered User
    Join Date
    07-01-2014
    Location
    New Delhi , India
    MS-Off Ver
    2007
    Posts
    51

    How to add range in a Formula through VBA

    Dear All,

    I have attached a sales tracker ,every month i have to add a range to get the the min and max value.
    Now i want to automate the same min and max formula with the help of Vba .
    Can any one please help me .

    Dim InptboxName As String
    Rows("1:1").Select
    colno = Selection.Find("Min").Column
    Cells(1, colno).EntireColumn.Insert
    Cells(1, colno).Offset(2, 0).Select
    InptboxName = InputBox("Enter the Name of Month") 'December
    ActiveCell.Value = InptboxName
    ActiveCell.Offset(1, 1).Select
    ' Automate the formula of min and max.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Make data range in formula shift for a whole range when copying cell
    By Zaron in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-21-2016, 06:37 AM
  2. Replies: 1
    Last Post: 11-24-2015, 03:00 AM
  3. Replies: 1
    Last Post: 03-02-2015, 11:18 AM
  4. Replies: 2
    Last Post: 09-01-2014, 07:59 AM
  5. [SOLVED] chart based on dynamic range which resizes as per data in range-formula / vba
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-11-2014, 04:02 PM
  6. Replies: 1
    Last Post: 09-04-2013, 07:23 AM
  7. Replies: 1
    Last Post: 06-17-2006, 09:10 PM

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