Adding Values To a Next Column

abi

New Member
Joined
Oct 25, 2005
Messages
1
Hi Good Day to You. I am a beginner on recording a macro on excel.What I am doing now is making excel macro on my report every week.I am using Vlook up to input data on my worksheet template. I just want to know what formula I will use to put a data on a next column everytime the macro will run.There are 2 columns that I need to fill up.The data of this 2 columns has a different source of data.Please advice!!! Thanks a lot in Advance.... :wink:
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi, abi
Welcome to the Board !!!!!
just want to know what formula I will use to put a data on a next column everytime the macro will run
when only reading this line my suggestion would be "test1"
(adding info to row 1)
"next column" perhaps you mean "row"
There are 2 columns that I need to fill up
this would be "test2" (adding info to column 2)
Code:
Sub test1()
Cells(1, Columns.Count).End(xlToLeft).Offset(0, 1) = Date 'or whatever
End Sub

Sub test2()
Cells(Rows.Count, 2).End(xlUp).Offset(1, 0) = Date
End Sub
anyway your post is somewhat confusing to my sense
please provide an example of what you're doing

kind regards,
Erik
 
Upvote 0

Forum statistics

Threads
1,203,453
Messages
6,055,530
Members
444,794
Latest member
HSAL

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