+ Reply to Thread
Results 1 to 3 of 3

vba code - on click to copy format and paste to elsewhere the user wants

  1. #1
    Registered User
    Join Date
    02-27-2012
    Location
    sydney
    MS-Off Ver
    Excel 2010
    Posts
    24

    vba code - on click to copy format and paste to elsewhere the user wants

    Am developing a better user experience. Looking for a solution for a set of code to allow user to click on a particular cell (which already has all the correct formatting) to copy the format of that cell to anywhere the user wants.

    It would be better to describe the user experience with the attached sample file. Wanted to be able to design a code to allow user to say they want to take a few days off, they will first click on cell F177 to obtain the format, and then they will go can click the first day they want to start and then click on the last day of their leave period, Excel will then paste the format of F177 to all those cells in between. It also needs to be able to take both clicks on the same cell if the user wants to take only 1 day off. Is this doable? if yes, how cand I achieve this?
    Attached Files Attached Files
    Last edited by seatejo; 04-16-2013 at 09:39 PM.

  2. #2
    Registered User
    Join Date
    04-06-2013
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    36

    Re: vba code - on click to copy format and paste to elsewhere the user wants

    I think you're trying to make this harder than it needs to be.

    1) right click on F177 and click "Copy"

    2) drag across the days you want to take off to select them all at once. Stay on that range and right click, then click "Paste Special". Click "Formats".

    You're finished.

    If the days off are not together, Ctrl-click to select more cells or do the operation more times.

  3. #3
    Registered User
    Join Date
    02-27-2012
    Location
    sydney
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: vba code - on click to copy format and paste to elsewhere the user wants

    I know how to use the format painter myself. the design is targeting for those non excel users so their experience to submit a leave is just a few simple clicks and leave the rest to Excel to complete. the plan is to have Excel to create a log based on the user input and then when they click a 'submit' button, the file will be saved and be submitted via email to the manager for approval.
    Last edited by seatejo; 04-17-2013 at 02:09 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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