Results 1 to 6 of 6

Swapping cell formulas using VBA

Threaded View

  1. #1
    Registered User
    Join Date
    04-25-2017
    Location
    Porto - Portugal
    MS-Off Ver
    2016
    Posts
    5

    Swapping cell formulas using VBA

    Hi !

    I'm having some difficulties in improving some excel data sheets to minimize time and eliminate errors and i need to add a VBA code to solve this problem.

    Example:
    By clicking the button a text box appears, "Select one cell in Pos A row".
    By selecting ID 1 line Pos A row, the formulas in Pos A and Descr A will be swapped unchanged, to the correspondent Pos B and Descr B in ID 1 Line. All formulas in Pos B and Descr B will go to Pos A and Descr A unchanged also ! Just in ID 1 Line
    If the Row of Pos A is not selected correctly, an error message will appears.

    Shortly explained: the formulas in green cells are swapped by the red cells and vice-versa.

    I have seen around the forum some question about this subject, but my limited VBA knowlodges are not able to solve the "select cell" problem .

    Swap.JPG


    P.S. : I was not able to upload the file to this post !


    Sam
    Last edited by 6StringJazzer; 04-25-2017 at 08:50 AM.

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: 10-19-2016, 02:45 PM
  2. Code for swaping columns
    By structo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-02-2016, 01:22 PM
  3. Using Cell references in file paths for formulas to create dynamic formulas
    By MichaelStokesJr in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-04-2013, 11:49 AM
  4. Swaping and renaming columns macro
    By hugodevos in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2013, 09:04 PM
  5. Multiple formulas in selected cell without damaging previous formulas.
    By excel5111987 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-05-2011, 06:15 AM
  6. Replies: 5
    Last Post: 05-05-2008, 02:22 PM
  7. KEYBOARD SHORTCUT FOR SWAPING OF SHEETS
    By resolver in forum Excel General
    Replies: 2
    Last Post: 05-06-2006, 06:25 AM

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