+ Reply to Thread
Results 1 to 2 of 2

Macro to paste data

  1. #1
    Registered User
    Join Date
    05-14-2008
    Posts
    16

    Macro to paste data

    Hallo Friends,

    A small task. i am having an few Excel forms with 6 to 7 sheets in which some cells lets suppose G25, G27, G30 changes frequently from form to form and all sheets. unfortunately this cell is filled with a long word..for example 678956-087628-ABTH-IKH-098

    so I want to create an VB Macro directly from Excel using a VB Form with 3 buttons with captions following words "678956-087628-ABTH-IKH-098" and "678956-0432534-VJHGV-IKH-098" and "678956-023424-BJHV-IKH-098"

    now i click on the cell in sheet and click the required button in macro..so this cell should be filled with corresponding caption..

    Please can you help me in writing the code for the button click.

    selected cell should be pasted.

    thanks,

    singoi

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello singoi,

    Welcome to the Forum!

    We will use the default object names on this example. Label1, Label2, Label3, CommandButton1, CommandButton2, and CommandButton3. Here is the code for the UserForm.
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. DDE Macros and data formatting
    By JMann in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-28-2008, 05:33 AM
  2. Macro that will copy data from one workbook and paste it into another
    By Orlic in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2007, 01:09 PM
  3. macro to rearrange data
    By King Nothing in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-06-2007, 02:49 AM
  4. Macro to transfer data between sheets...
    By ChrisMattock in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-20-2007, 10:35 AM
  5. Macro problem, after inserting new row, paste special
    By cheeky in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2007, 04:36 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