Data not being transfered to firs column

EDUCATED MONKEY

Board Regular
Joined
Jul 17, 2011
Messages
218
XP Professional office 2003 <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
<o:p></o:p>
<o:p></o:p>
Having difficulty spotting my error, the code I am using was kindly given to me and I modified it for my needs, it is meant to places the data in the next available column which it does with the exception of column A, which is never filled and is left blank which causes some difficulty later in the process <o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
Sub MoveIsbns()<o:p></o:p>
'<o:p></o:p>
' MoveIsbns Macro<o:p></o:p>
' Macro recorded <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:eek:ffice:smarttags" /><st1:date Month="8" Day="1" Year="2011">01/08/2011</st1:date> by Peter Hayward<o:p></o:p>
'<o:p></o:p>
' Keyboard Shortcut: Ctrl+Shift+V<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
With Worksheets("PROCESS_ISBN")<o:p></o:p>
.Range("F1:G1").EntireColumn.copy<o:p></o:p>
With Worksheets("ISBNs")<o:p></o:p>
.Cells(1, Columns.Count).End(xlToLeft).Offset(0, 1).PasteSpecial<o:p></o:p>
End With<o:p></o:p>
End With<o:p></o:p>
Application.CutCopyMode = False<o:p></o:p>
End Sub<o:p></o:p>
 
Last edited:

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hello

Try.

Code:
Sub MoveIsbns()
'
' MoveIsbns Macro
' Macro recorded 01/08/2011 by Peter Hayward
'
' Keyboard Shortcut: Ctrl+Shift+V


With Worksheets("PROCESS_ISBN")
.Range("F1:G1").EntireColumn.Copy
With Worksheets("ISBNs")
col = IIf(.Range("A1") = "", 0, 1)
.Cells(1, Columns.Count).End(xlToLeft).Offset(0, col).PasteSpecial
End With
End With
Application.CutCopyMode = False
End Sub
 
Upvote 0
Sub TRANSFFER4()
'
' TRANSFFER4 Macro
' Macro recorded 04/08/2011 by Peter Hayward
'
' Keyboard Shortcut: Ctrl+Shift+E
'
Dim wsSource As Worksheet, wsDest As Worksheet
Dim q As Long, Nextrow As Long
Dim total As Integer

Dim rawdata As Integer

Dim Label2 As String

Application.ScreenUpdating = False
total = 188
q = 96

Set wsSource = Worksheets("ISBNs")
Set wsDest = Worksheets("COMPLETED ISBNs")

For rawdata = 1 To total

Nextrow = wsDest.Range("A" & Rows.Count).End(xlUp).row 'Next empty row on wsDest
wsDest.Cells(Nextrow, "A").Resize(q).Value = wsSource.Cells(1, "A").Resize(q).Value
wsDest.Cells(Nextrow, "B").Resize(q).Value = wsSource.Cells(1, "B").Resize(q).Value

wsSource.Select

Columns("A:B").Select ' shunt data along
Selection.delete Shift:=xlToLeft

Next rawdata

Application.ScreenUpdating = True
End Sub
 
Upvote 0
Hello

Try.

Code:
Sub MoveIsbns()
'
' MoveIsbns Macro
' Macro recorded 01/08/2011 by Peter Hayward
'
' Keyboard Shortcut: Ctrl+Shift+V


With Worksheets("PROCESS_ISBN")
.Range("F1:G1").EntireColumn.Copy
With Worksheets("ISBNs")
col = IIf(.Range("A1") = "", 0, 1)
.Cells(1, Columns.Count).End(xlToLeft).Offset(0, col).PasteSpecial
End With
End With
Application.CutCopyMode = False
End Sub
Perfection thanks very much
pete<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
 
Upvote 0

Forum statistics

Threads
1,214,829
Messages
6,121,826
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top