Consulting

Results 1 to 2 of 2

Thread: Get the content from the fixed cell & variable cell and combine it

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Get the content from the fixed cell & variable cell and combine it

    Hi all

    I have the one minor VBA marco question which is how to get the content from the 1 fixed cell to combine with the variable content from other cell.

    For Example,in B2=115V which is the Fixed cell. B3=400mA, B4=300mA, B5=200mA, B6=100mA which are the variable cell(Contents is variable).

    Therefore, i want to write the marco which can change the B3="115V/400mA", B4="115V/300mA", B5="115V/200mA".....base on the B2(Fixed cell)

    Thanks
    Ann

  2. #2
    VBAX Master
    Joined
    Jun 2007
    Location
    East Sussex
    Posts
    1,110
    Location
    Something like:
    [VBA]Range("B3").Value = Range("B2").Value & "/" & Range("B3").Value[/VBA]
    Regards,
    Rory

    Microsoft MVP - Excel

Posting Permissions

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