Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Phatboy_D
 
Posts: n/a
Default copy macro assigned buttons in an array

I would like to assign a macro to a button to add 14 days to a date in a cell
in the same row. But the catch is I would like to have 5000 rows with 5000
buttons only update the cell in it's row. Any help would be greatly
appreciated.
  #2   Report Post  
LanceB
 
Posts: n/a
Default

You might want to try a Worksheet_SelectionChange event. This one will add
14 to what ever is in column b and place it in column c when you click a cell
in column a.

You could use formating in colmn a to simulate buttons


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Column = 1 And Target.Count = 1 Then
Target.Offset(0, 2) = Target.Offset(0, 1) + 14
End If
End Sub


"Phatboy_D" wrote:

I would like to assign a macro to a button to add 14 days to a date in a cell
in the same row. But the catch is I would like to have 5000 rows with 5000
buttons only update the cell in it's row. Any help would be greatly
appreciated.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro - - Automation Jac Excel Discussion (Misc queries) 8 December 27th 04 02:42 PM
How do i print out my spreadsheet with macro buttons? Chris.... Excel Discussion (Misc queries) 1 December 12th 04 07:29 PM
Macro and If Statement SATB Excel Discussion (Misc queries) 2 December 3rd 04 04:46 PM
Macro Formula revision? Mark Excel Worksheet Functions 1 November 28th 04 01:43 AM
copying text into a macro pagelocator Excel Worksheet Functions 1 November 24th 04 08:52 AM


All times are GMT +1. The time now is 02:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"