VBA / Macros question; Help pls

jevsim

New Member
Joined
Oct 10, 2017
Messages
2
Dear Friends,

Please help me to solve the following task:

DataTable

ABCDEFGHIK
SomeNamexyzxyz
SomeNamexyzxyzxyzxyz
MyCell
SomeName axyz?xyz
12
SomeNamexyz?23
?3
?
52
?
85
SomeName Z?145

<tbody>
</tbody>

The key goal is copy the data (Red figures from Column I) to the respective column and rows in the D column ("?" sign cells).
Key issue: there might be more additional rows inserted or deleted before and after My KeyCells (so we cannot fix the code around these cells as they are dynamic)

My suggestion:
Create VBA Macros to perform following actions:

  1. Find the cell named "XYZ"
  2. Assign a name to this Cell - MyCell
  3. Find the range of the targeted cells -(MyCell (+1, +X) (input data)
  4. Find the range of the targeted cells -(MyCell (+1, +Z) (data to be Copied there - TaRGET LOcation)
  5. Copy-Paste as Values from INPUT DATA to TARGET LOCATION


Message bOX - "Done"

Problem: cannot code this idea. Any ideas, Friends?

Or what is your suggestion?
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,216,038
Messages
6,128,447
Members
449,453
Latest member
jayeshw

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