Copy data into new rows (row 2, 3, 4, et cetera)
Closed
LSKDJF
Posts
2
Registration date
Wednesday January 31, 2018
Status
Member
Last seen
January 31, 2018
-
Jan 31, 2018 at 12:13 AM
Blocked Profile - Feb 2, 2018 at 10:49 PM
Blocked Profile - Feb 2, 2018 at 10:49 PM
Related:
- Copy data into new rows (row 2, 3, 4, et cetera)
- Tentacle locker 2 - Download - Adult games
- Hitman 3 cheats - Guide
- Left 4 dead 2 download - Download - Shooters
- Psiphon 3 download - Download - VPN
- Saints row 2 cheats - Guide
1 response
Take some time and look at this code:
https://ccm.net/faq/54862-how-to-copy-data-from-one-excel-sheet-to-another-using-a-formula
Have fun!
https://ccm.net/faq/54862-how-to-copy-data-from-one-excel-sheet-to-another-using-a-formula
Have fun!
Jan 31, 2018 at 10:25 PM
would i use the following portion to actually do the placement of text?
Function LoopForMove(FromWhatSheet, ToWhatSheet)
Dim LastRow, Cnt
Dim CellValue As String
Dim CellLoc
Dim nret
If WhatCol = "" Then
WhatCol = "A"
End If
If Qualif = "" Then
Qualif = "X"
End If
ThisWorkbook.Worksheets(FromWhatSheet).Select
LastRow = FindLastRow(FromWhatSheet)
For Cnt = LastRow To 1 Step -1
CellLoc = WhatCol & Cnt
CellValue = ThisWorkbook.Worksheets(FromWhatSheet).Range(CellLoc).Value
If CellValue = Qualif Then
nret = Moveit(FromWhatSheet, CellLoc, ToWhatSheet, CutVal)
End If
If that's the case I would simply alter the place from moving it to a separate sheet, like the example uses, to just the upper portion of the same sheet. Put all of that code into one simple button and that would copy whatever text I've designated and place it in order automatically like I wanted. Did I get that right?
Thanks for the help!
Greg
Updated on Feb 2, 2018 at 06:59 PM
You will still need to pass the variable of "ToWhatSheet" tho. What would you do to eliminate that need?
Feb 2, 2018 at 10:35 PM
Function LoopForMove(Sheet1, ToSheet1)
Dim LastRow, Cnt
Dim CellValue As String
Dim CellLoc
Dim nret
If WhatCol = "" Then
WhatCol = "B"
End If
If Qualif = "" Then
Qualif = "X"
End If
ThisWorkbook.Worksheets(Sheet1).Select
LastRow = FindLastRow(Sheet1)
For Cnt = LastRow To 1 Step -1
CellLoc = WhatCol & Cnt
CellValue = ThisWorkbook.Worksheets(Sheet1).Range(CellLoc).Value
If CellValue = Qualif Then
nret = Moveit(Sheet1, CellLoc, Sheet1, CutVal)
End If
I'd want to move information from F2 through F5 into B2 through B5 on the same worksheet then clear F2 through F5. Having to fix the cell values a bit more would what I have here be effective?
Feb 2, 2018 at 10:37 PM
Feb 2, 2018 at 10:49 PM
That way you can isolate the procedures and where the trouble may fail!
BTW, just drop the second passing of the variable, as in: