Copying and pasting data into VBA

Stclements1

Board Regular
Joined
Sep 15, 2018
Messages
150
Office Version
  1. 365
Platform
  1. Windows
Below is a list of data that when installed into a trade sheet gives me a monthly trade sheet template if I add the same syntax as I have for Range A1 to all the other cells listed is it possible for me to then copy and paste all of it into VBA as a range A1:AA1 or do I need to input each cell value independently?

Range ("A1")
Value=Trade No

B1 Open Trades

C1 Closed Trades

D1 Open Trade Date

E1Close Trade Date

F1 Trade Period

G1Closed Fund Value

H1 Product

I1 Execution

J1 Trade Price

K1 Lots

L1 Trade Size

M1 Leverage

N1 Total Leverage

O1 % Margin

P1 £ Margin Required

Q1 Fund Balance

R1 % Target Return

S1 Target Exit Level

T1 Target Fund Return

U1 Actual Exit Level

V1 Interest on Open Position

W1 Actual Fund Return

X1 Nett Return after Interest

Y1 % Actual Return

Z1 Open Fund Value

AA1 % Fund Growth
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
You could do it like
VBA Code:
   Range("A1:AA1").Value = Array("Trade No", "Open Trades", "Closed Trades", "Open Trade Date", "Closed Trade Date")
 
Upvote 0
You're welcome & thanks for the feedback
 
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