0 votes
in VBA by Beginner (15 points)
Hi guys

I read about valuebox. I understand we can use this to "set" a value. I was wondering, would it be possible to make a script so that I can move the whole column base on the value (ie something like select valuebox:valuebox). I need to move columns to the right (but it varies from worksheets and varies in workbooks; else easier to fix). So would need this flexibility.

If I put in B in the valuebox, I would like to concat it to B:B (not type B:B) and insert a brand new column there.

Thanks in advance!

1 Answer

0 votes
by Beginner (56 points)
selected ago by
Best answer

something like

v = valuebox
if len(v) = 1 then v = v & ":" & v


Welcome to wellsr Q&A
Ask any questions you have about VBA and Python and our community will help answer them. wellsr Q&A is the standalone question and answer platform for wellsr.com. If you have a question about one of our specific tutorials, please include a link back to the tutorial.

Getting Started
VBA Cheat Sheets (On Sale Now)

Looking for something else? Hire our team directly through ourVBA Help page, instead.

For more programming tips visit the VBA Tutorials Blog and the Python Tutorials Blog.