Hi,
I am a beginner with VBA and wondering if anyone could help me.
I need to copy a cell, (say from Cell A1, Sheet 1 of Workbook 1) to replace the contents of another cell in another workbook (say Cell A100, Sheet 1 of Workbook 2) which has both text and numbers in the same cell (i.e. This Value = 123) - I only want to replace the numbers and leave the text and the equals sign in tact.
I then need to save the modified Sheet 1 of Workbook 2 as a .txt file, called for example, 'run1'.
Then I need to copy the next cell down (Cell A2) from Sheet 1, Workbook 1, and paste into the same cell (Cell A100) in Sheet 1, Workbook 2, And then save this sequentially, so as 'run2'.
I need to do this hundreds of times until I run out of values in Sheet 1, Workbook 1.
I hope I have tried to explain my problem as clearly as possible. I have done web searches but haven't had any success.
I would appreciate any help anyone could give me.
Kind Regards
P.Douglas
I am a beginner with VBA and wondering if anyone could help me.
I need to copy a cell, (say from Cell A1, Sheet 1 of Workbook 1) to replace the contents of another cell in another workbook (say Cell A100, Sheet 1 of Workbook 2) which has both text and numbers in the same cell (i.e. This Value = 123) - I only want to replace the numbers and leave the text and the equals sign in tact.
I then need to save the modified Sheet 1 of Workbook 2 as a .txt file, called for example, 'run1'.
Then I need to copy the next cell down (Cell A2) from Sheet 1, Workbook 1, and paste into the same cell (Cell A100) in Sheet 1, Workbook 2, And then save this sequentially, so as 'run2'.
I need to do this hundreds of times until I run out of values in Sheet 1, Workbook 1.
I hope I have tried to explain my problem as clearly as possible. I have done web searches but haven't had any success.
I would appreciate any help anyone could give me.
Kind Regards
P.Douglas