Consulting

Results 1 to 3 of 3

Thread: VBA/Excel Workbook Help

  1. #1

    Lightbulb VBA/Excel Workbook Help

    Hi guys, Im extremely new to VBA and fairly new to excel. My question is how do I insert a formula (or perhaps write the code to do so) in my VBAProject to display the result of Hourly Rate * Hours Worked in my Excel Workbook and into a specific range say "B4"?

    Also, how can I assign headers to certain rows in my excel worksheet from my VBAproject?

    Feel free to answer one of the questions or both!

    Thanks!

  2. #2
    Why not record the macro. That will give you the code for the formula. While you are about it you could add the headers and the recorder will write the code for that too.

  3. #3
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Post a sample workbook showing your data and also the expected outcome. Go Advanced / Manage Attachments
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Tags for this Thread

Posting Permissions

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