Copy to ActiveCell and activecell.offset(0, 2)

Ash3154

New Member
Joined
Dec 21, 2010
Messages
6
2 parts to this question:

2 Workbooks
Copies Data from wb1 to wb2
make changes in wb2 and override this information in wb1 -- (This part I got)

This part seems confusioning and i thought a loop would be way to go, but not sure how to begin.

Data which is copied back is as follows in Column:
Cell 1: First Name
Cell 2: Lst Name
Cell 3: Address
Cell 4: City
Cell 5: xxx
Cell 6: Credit Card info
Cell 7: xxx
Cell 8: Nights
Cell 9: num of people
Cell 10: Num of Rooms
Cell 11: Rate
Cell 12: xxx and so on I have a total of 24 items being copied back

If nights = 2, copy First name to the right cell1.offset(0, 2), same with last name.
If nights = 3, copy First name to the right cell1.offset(0, 2),
and copy First name to the right cell1.offset (0, 4) same with last name.
If nights = 4, copy cell1.offset(0, 2) & cell1.offset(0, 4) and & cell1.offset (0, 6)

If the offset cells are not blank then provide some sort of message and resume to the next set of offset cells.

Part 2 is even more confusing to me:
Depending on Number of Rooms:
If there are 2 rooms I need to copy the information to another room which I will have to choose that cell manually which now will be my active cell, the rate, number of people, etc maybe different so I will have to modify that in wb2 and copy all that back to my active cell in wb1.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,215,043
Messages
6,122,812
Members
449,095
Latest member
m_smith_solihull

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