+ Reply to Thread
Results 1 to 5 of 5

Pastespecial for different cases

  1. #1
    Registered User
    Join Date
    05-12-2020
    Location
    Lima,Peru
    MS-Off Ver
    2016
    Posts
    25

    Pastespecial for different cases

    Namaste Gurus of VBA macro excel.
    I am using this code:

    Please Login or Register  to view this content.
    To copy data from one sheet to another.
    1) But cases are more than 50.
    2) C51, E31 don't change for all these 50 cases.
    3) But Q04 change... for case "1" correspond Q04, for case "2" correspond Q05
    and in this way... 3 ----- Q06, 4 --- Q07...

    There is maybe a "Magic Code" that can use for no write 50 times the same structure?

    Thanks for your help.

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,152

    Re: Pastespecial for different cases

    Ad 1. IF "C51, E31 don't change for all these 50 cases" AND "cases are more then 50" THEN when do the values of C51, E31 change ?
    Ad 2. Attach some sample xls file

  3. #3
    Registered User
    Join Date
    05-12-2020
    Location
    Lima,Peru
    MS-Off Ver
    2016
    Posts
    25

    Re: Pastespecial for different cases

    oH! Sorry for no clear explanation.
    When I said that C51 31 doesn't change I am talking about Structure, but the data inside of these cells can change.
    Different situation with the Range Copy Q06, Q07, Q08... etc

    Attachment 710709

    You can see the button and cell for change case 1 to more than 50
    I am attaching the excel file from my google drive because the attach option is not working well here.

    https://drive.google.com/file/d/1Uiv...ew?usp=sharing

    You can see that I must copy data from a list of users for generating INVOICE

    Thanks for your help.

  4. #4
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,152

    Re: Pastespecial for different cases

    Quote Originally Posted by Vladi108mb View Post
    ... because the attach option is not working well here ...
    It works fine when you follow the description in the yellow bar (named "HOW TO ATTACH YOUR SAMPLE WORKBOOK:") between ["Forum => Microsoft Office Application Help - Excel Help forum => Excel Programming/VBA/Macros => Pastespecial for different cases"] and ["Post New Thread/Reply To Thread"] at the top of the www page ...

  5. #5
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,152

    Re: Pastespecial for different cases

    Try - maybe I understood correctly ... maybe:
    Without the "Select Case"
    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. Allocation of cases
    By Mikeroku in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-08-2016, 05:39 PM
  2. Complex IF cases
    By Chippi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-03-2014, 01:18 PM
  3. Add cases opened and closed for each month and specifics about the cases.
    By ChrisLaRoc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-04-2014, 08:19 PM
  4. [SOLVED] Cases within Cases
    By mtm4300 via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-18-2006, 09:45 PM
  5. two cases for countif
    By joi2 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-08-2005, 10:15 AM
  6. Matching 2 cases at once.
    By mae1778 in forum Excel General
    Replies: 2
    Last Post: 08-26-2005, 05:05 PM
  7. Three Cases
    By teresa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2005, 02:06 PM

Tags for this Thread

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