+ Reply to Thread
Results 1 to 4 of 4

VBA to format copied cells

  1. #1
    Registered User
    Join Date
    11-30-2012
    Location
    North Carolina
    MS-Off Ver
    Office 365
    Posts
    60

    VBA to format copied cells

    I have a user form that is designed to copy user-entered data over to workbook sheet (Sheet3). I open the form with a blank worksheeet ("Form"). All functions with the form work fine. After copying the user-entered data (copied to Sheet3), i wish to format the copied cells (provide a red cell border). I have some code that supposedly does that, but cells on the blank "Form" sheet are being formatted with the red border, not the sheet where the data is being copied. For the life of me, i cannot figure out how this code is copying the data to the right sheet, but not doing the formatting on the same sheet.

    My code:

    Please Login or Register  to view this content.
    There is additional code below this attached snippit to clear the form for next use (which works fine thanks to help on this forum).

    Any help on getting this problem fixed is appreciated; since i am new to coding, please be specific.

  2. #2
    Registered User
    Join Date
    11-03-2012
    Location
    México
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: VBA to format copied cells

    Only the dot is missing to obtain the sheet reference:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-30-2012
    Location
    North Carolina
    MS-Off Ver
    Office 365
    Posts
    60

    Re: VBA to format copied cells

    Oustanding, that fixed the problem and saved me hours of headscratching.

  4. #4
    Registered User
    Join Date
    11-03-2012
    Location
    México
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: VBA to format copied cells

    I'm glad to help you. Thanks for the feedback.

+ 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. Replies: 4
    Last Post: 02-26-2015, 11:29 AM
  2. format copied cells from pivot
    By excelhelpseeker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-16-2014, 06:00 AM
  3. Replies: 3
    Last Post: 01-09-2013, 12:29 PM
  4. Date format not being copied?
    By Aland2929 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2012, 07:46 AM
  5. Copied data will not format
    By Tim Peirce in forum Excel General
    Replies: 2
    Last Post: 12-22-2008, 03:55 PM
  6. [SOLVED] format cells-copied data from the txt file
    By Eric in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-22-2005, 11:09 PM
  7. [SOLVED] Can't change format of copied cells
    By xirx in forum Excel General
    Replies: 1
    Last Post: 05-12-2005, 05:06 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