Consulting

Results 1 to 3 of 3

Thread: Solved: Insert Text in Selected Cell by Macro

  1. #1
    VBAX Mentor clhare's Avatar
    Joined
    Mar 2005
    Posts
    470
    Location

    Solved: Insert Text in Selected Cell by Macro

    I need to create a macro that will insert text from a variable into column 2 of the selected row (whatever row that may be). How do I do that??

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    Activesheet.Cells(Activecell.Row,"B").Value = myVar
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Mentor clhare's Avatar
    Joined
    Mar 2005
    Posts
    470
    Location
    Yea!!! It works!! Thank you so much. I could not figure it out!

Posting Permissions

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