Copy Data from a column on a sheet and paste to a specific spot on another sheet

Cranman2127

New Member
Joined
Sep 2, 2016
Messages
36
Hello,

I'm trying to figure out how to copy the data in column I (9) from one worksheet 'fitment' starting in row 2. And pasting any data found up until the first blank in column I (9) into cell A30 on a worksheet called 'Sheet1'.

The data starts on "Fitment" as a formula, the first block of code is to run the forumula and copy the values into column I (9).

'Define Worksheets
Dim sh1 As Worksheet
Set sh1 = Worksheets("Sheet1")
Dim ft As Worksheet
Set ft = Worksheets("Fitment")




'Run Concat Formula
ft.Select
Columns(7).Select
Selection.value = Selection.FormulaR1C1

'Copy Concat Value and Paste
ft.Select
Columns(7).Select
Selection.Copy
ft.Select
Columns(9).Select
Selection.PasteSpecial Paste:=xlPasteValues

Any Help would be greatly appreciated.
Thank you!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
What was the value of UsdRws?
 
Upvote 0
If you add the message box as shown, what does it say?
Code:
With Sheets("fitment")
   UsdRws = .Range("G" & Rows.Count).End(xlUp).Row
   [COLOR=#0000ff]MsgBox UsdRws[/COLOR]
   .Range("I2:I" & UsdRws).Value = .Range("G2:G" & UsdRws).Value
   Sheets("Sheet1").Range("A30").Resize(UsdRws - 1).Value = .Range("I2:I" & UsdRws).Value
End With
 
Upvote 0
In that case there is no data below row 1 in col G on the Fitment sheet.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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