.Address from cell back to Range VBA

dmenegr

New Member
Joined
Apr 20, 2013
Messages
7
Hi All,

I have to macros I'm working with the first take a user set range and prints the . Address to a cell.

The second Macro I'm trying to get to look at that cell and pull out the range. So is there an opposite fuction to . Address that will convert excel format to a VBA Range format. Ex A cell with $A$1:$A$2 to Range("A1",A2")

Macro 1
Code:
For j = 1 To x
c = 1
    For i = 1 To ws.Range("AD" & rc).Value
    ws.Range("AE" & rc).Value = Application.InputBox(Prompt:="What is the Heading of Data set #" & c & " Table " & tc & " This entry may repeat", Type:=8)
    ws.Range("AF" & rc).Value = Application.InputBox(Prompt:="What is the Data set title of Data set #" & c & " Table " & tc & " If Header is data set the Data Title hit Cancel", Type:=8)
    Set a = Application.InputBox(Prompt:="What is the Range of Data set #" & c & " Table " & tc, Type:=8)
    ws.Range("AG" & rc).Value = a.Address
    rc = rc + 1
    c = c + 1
    Next i
tc = tc + 1
rc = rc + 11 - i
Next j



Macro 2
Code:
'A lot of code here but I want to be able to set multiple ranges to the ranges list in the cell values. 
rng(2) = sh(0).Range("AG2").Value
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,215,421
Messages
6,124,806
Members
449,191
Latest member
rscraig11

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