Copy to current region

tljenkin

Board Regular
Joined
Jun 14, 2007
Messages
147
Hi All

I have a little problem that makes me wonder about my vba

I have a cell that says "week 5", lets say it is in cell A2

I want a code that will look at cell a2 and paste "week 6" in cell A3 or the current region (assume b3:b15 has data in it)

This has to be dynamic as the week will change each week

Thanks
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Try This Code
Code:
Sub Test()
Dim LR As Long
LR = Range("B" & Rows.Count).End(xlUp).Row
Range("a2").AutoFill Range("A2:A" & LR)
End Sub
 
Upvote 0
Thanks but I want the week to increment by one each time I do this.... Can you adjust your code please?
 
Upvote 0

Forum statistics

Threads
1,224,581
Messages
6,179,668
Members
452,936
Latest member
anamikabhargaw

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