Results 1 to 5 of 5

(VBA) Move selected cell one to the LEFT

Threaded View

MichaeljMr (VBA) Move selected cell one... 08-09-2019, 05:40 AM
davesexcel Re: (VBA) Move selected cell... 08-09-2019, 08:24 AM
MichaeljMr Re: (VBA) Move selected cell... 08-09-2019, 09:13 AM
davesexcel Re: (VBA) Move selected cell... 08-09-2019, 11:37 AM
jolivanes Re: (VBA) Move selected cell... 08-09-2019, 01:04 PM
  1. #1
    Registered User
    Join Date
    08-09-2019
    Location
    Brussels, Belgium
    MS-Off Ver
    2010
    Posts
    2

    (VBA) Move selected cell one to the LEFT

    Hi,
    I created a worksheet in excel to calculate my offers to my customers. Each offer is then SAVED into a separate database (new excel sheet) , one row per offer.

    The strategy I use is that I simply link the values from my worksheet into the very first row of my database (A1:Q1)

    Whereafter I run the following code :
    Sheets("Quotes").Range("A1:Q1").Select
    Selection.Copy
    Sheets("Quotes").Range("B1").End(xlDown).Offset(1, 0).Select
    -----------------
    note: .Range("B1") has to be B1 for a specific reason. I know I can fix it by changing the value to A1, but that is not what I need.
    The above code searches for the first EMPTY row in the database so it can paste the new offer in an empty row.
    However, I need to first move one cell te the left --> A# because my current selection is on the B# column. Otherwise my offer is pasted incorrectly and doesnt align with the others.
    - I also understand I need to enter the correct code in this area, hence why I am typing in between the code.
    -----------------
    Selection.PasteSpecial Paste:=xlPasteValues
    Workbooks("Quotes.xlsm").Close Savechanges:=True
    Workbooks("Skye.xlsm").Activate
    I hope I explained it correctly and thanks to help me out.

    Michael
    Last edited by davesexcel; 08-09-2019 at 08:23 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Formula to move data to Left when LEFT cell is blank?
    By wer5150 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-31-2019, 05:26 AM
  2. Formula to move data to Left when LEFT cell is blank?
    By wer5150 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-31-2019, 05:22 AM
  3. [SOLVED] How to move the content of the cell from right to the left
    By AlexanderCH in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-28-2016, 11:40 AM
  4. cell data move to left
    By lapot in forum Excel General
    Replies: 3
    Last Post: 05-18-2007, 08:04 PM
  5. Move contents of selected cell down one, and to the left one cell?
    By Albert Einstein in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-17-2006, 01:20 PM
  6. HOW TO: Move a picture to the top left or top right of a cell via
    By Kevin McCartney in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2006, 12:50 PM
  7. selected cell - top left
    By Ciara in forum Excel General
    Replies: 1
    Last Post: 05-25-2005, 07:19 AM

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