Pesty Issue with Active Cell

gripper

Board Regular
Joined
Oct 29, 2002
Messages
176
I have a speadsheet with some macros and I have a couple questions.

Basically the macros with take a very wide speadsheet and after some manipulation will have it stacked in Column 1 and 2. This works fine. The pesty issue is when the macro is finished my cursor if way out to the right where there is no data anymore. I would like the last piece of code in the macro to move the spreadsheet to its normal position with cell A1 top left. I poked around and played with some code but I think I am making this too complicated.

The last thing is a Best Practice question.

What is the Best way to store macros to be used in any open speadsheet instead of having me only paste my data to one existing sheet. I would like to have it always available. I guess perhaps some type of add in or something. But I think for me to make an add on I need to convert the macros to code, correct? and then do something to make it an add in. If there is a better (Best Practice) way I would love to hear it.

I appreciate any assistance.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Question 1
Code:
Range("A1").Select

Question 2
Place your macros in your Personal Macro file locates in the xlStart Folder!! Search for Personal.xls

lenze
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,310
Members
452,906
Latest member
phanmemchatdakenhupviral

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